Jump to content

braux

Members
  • Posts

    4
  • Joined

  • Last visited

braux's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Ok, now I see what I did wrong. Thanks a lot, it is perfect !
  2. Sorry, I simplified the tree to make the explanation clearer. My project is named "visu_casu", and the other directories that already are on my account (mapApp, media, static) are sub-directories for this django project. Everything works well on a local server. The contents of my directories are: public_html: db.sqlite3 manage.py mapApp/ media/ static/ visu_casu/ visu_casu: .htaccess __init__.py __pycache__/ asgi.py dispatch.wsgi settings.py urls.py wsgi.py And for the files: .htaccess RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(visu_casu/dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ visu_casu/dispatch.wsgi/$1 [QSA,PT,L] dispatch.wsgi / wsgi.py import os, sys sys.path.append("/home/braux/public_html/visu_casu") from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'visu_casu.settings') application = get_wsgi_application()
  3. Oh, perfect, you were right about the port ! Thanks for that. I've got a .htaccess file, but I really am confused about it. My tree is like that : My .htaccess : RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(myproject/dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ myproject/dispatch.wsgi/$1 [QSA,PT,L] As this configuration has no logic for me, I also tried to put the .htaccess file in /home/username/public_html/, but then I get a 500 error. My Django app runs well in local.
  4. Hello, I am new to Heliohost and already have a few problems. First of all, I can't access cPanel. When I login to https://www.heliohost.org/login/ and use the "continue to cPanel" button, I end up on a loading error page. Is it because it needs a really good internet connection ? If so, what should I do, as I cannot get a better one for now ? Secondly, I would like to host a Django application. I tried to follow the wiki-tutorial (https://wiki.helionet.org/tutorials/django), but all I get is a "basic hosting" of the files, and the app itself is not launched: when I go to my web address (mywebname.heliohost.us), I only get a list of the files and directories (db.sqlite3, manage.py, ...). If I host regular files (like .html files), I can access/see them without any problem. - Do you see what I could have missed when uploading my django app ? - What is the difference between the tutorial I followed (https://wiki.helionet.org/tutorials/django) and this one http://www.heliohost.org/classic/features/languages/python ? In particular, the second one says something about python's eggs, and that is not mentioned at all in the first one, so ... which is the "good" one ? Thanks in advance for any answer, hoping that my English is not too horrid ...
×
×
  • Create New...