Jump to content

juanky

Members
  • Posts

    7
  • Joined

  • Last visited

juanky's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. You create the username and password, and grant permissions at https://tommy.heliohost.org:2083/frontend/paper_lantern/psql/index.html Depending on what you create it will look something like this: username = iniesta_user database = iniesta_db password = <whatever> port = 5432 host = localhostMy database configuration seems to be correct. Take a look at http://wiki.helionet.org/Django The .htaccess file is where you define your static file directories that won't be processed through dispatch.wsgi RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] You can add as many directories as you want or change media and admin_media to whatever you want, but whatever you put in there will be served directly from apache to the browser without being processed through django. my dispatch.wsgi file looks like this: import os, sys sys.path.append("/home/iniesta/public_html") from django.core.wsgi import get_wsgi_application os.environ["DJANGO_SETTINGS_MODULE"] = "inforiesgoserver.settings" application = get_wsgi_application() and .htaccess: RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(inforiesgoserver/inforiesgo/static/.*)$ - [L] RewriteRule ^(inforiesgoserver/dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ inforiesgoserver/inforiesgoserver/dispatch.wsgi/$1 [QSA,PT,L] because the static files are in the app inforiesgo I created inside project inforiesgoserver. This configuration has been set following the http://wiki.helionet.org/Django, but only the folder structure "Index of /" is shown when I access https://inforiesgo.heliohost.org/ I can't figure out what the problem is
  2. Thanks! I realized my project also has dependencies with modules json and datetime but these are supposed to be included in python distribution by default, so I don't think the problem is there. Anyway, this topic doesn't ask for python modules installation so maybe I didn't explain myself correctly. My doubts are related to static files and/or postgres database configuration. Is there a guide or something explaining how to configure them properly on heliohost?
  3. Hi all, Now project dependencies seems to be satisfied, my Django website is not properly configured because it is not loaded when accesing to https://inforiesgo.heliohost.org/ File .htaccess seems to be correct, I have followed the steps described in the Django wiki. I think the problem could be related to: Postgres: I created the postgres database and changed settings.py file in order to use this new database. Anyway, the creation of this database is just to create and asign it a superuser, not launching commands such as manage.py makemigrations or migrate, so the database should be empty. settings.py database configuration looks like: 'NAME': 'iniesta_inforiesgo', 'USER': 'iniesta_juanky', 'PASSWORD':*****, 'HOST':'127.0.0.1', 'PORT': '5432' static files: I made no changes related to the static files, so settings.py is the same than the one working in localhost:STATIC_URL = '/static/' Any help would be grateful. Thanks!
  4. We don't have that version on any of our servers. We do have 3.6.0 and 3.6.1 though. Are you sure your script requires 3.5.3 or can you rewrite it for 3.6.x? Django can only be installed on one version of Python at a time per server. We're planning on doing Python 2.7 on Ricky when we get him running soon. Tommy's django is already installed on 3.6 and he's not going to be downgraded to 3.5.3. I'm assuming you need them installed on Tommy's django python version so I went ahead and installed django-rest-framework 3.6.4 and geopy 1.11.0. https://krydos.heliohost.org/cgi-bin/modules36.py Thank you so much! I think my scripts will work for python 3.6.x The list with the installed modules has a mistake: django-rest-framework 0.1.0 django 1.10.5 djangorestframework 3.6.4
  5. No, the server error log files contain information for all accounts on the server. It would violate our privacy policy to allow a user to see private information from someone else's account. Yeah, you got .htaccess file in the wrong place. You have it in /home/iniesta/public_html/ when it should be in /home/iniesta/public_html/inforiesgoserver/ I edited the wiki in a couple places to make this more obvious. Here is the list of modules currently installed on Tommy python 3.6 https://krydos.heliohost.org/cgi-bin/modules36.py If you're using something that's not on that list you'll need to request it to be installed, or upload the module to your account and do something like this https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path Thank you so much! For now, I need python modules django-rest-framework (3.6.3) and geopy (1.1.0). Where should I request for these modules to be installed? Is it enough with this post? In the other hand, I have moved the .htaccess file to the path you told me and I only get to navigate through my server folders structure
  6. Hello, I just uploaded my Django website and, after setting it up following the wiki, it is displaying a 500 internal server error when accesing to http://inforiesgo.heliohost.org I presume this is happening because my website is not properly configured (.htaccess, folder structure, ...) or because it is using the toolkit django-rest-framework that maybe is not installed in Tommy. Because of that, several questions came to my mind: Is it possible to install django-rest-framework (or other) in Tommy?Do I have access to the server error log files?My username in Tommy's server is iniesta. Thanks in advance!
×
×
  • Create New...