I started everything from scratch using virtualenv (python3.4 + Django1.9) and things are looking better now. I had a complex file structure so i imported from my git handle but it cant locate app.settings for me. I had to change my last tow lines of the wsgi.py file to this for it to work: from django.core.wsgi import get_wsgi_application application = get_wsgi_application() deleted-user-459268 | 2 posts | Jan. So if I run it from there I get nothing. Source
I needed to use path = '/home/Gooman/myproject' instead of path = '/home/Gooman/myproject/myproject' Gooman | 1 post | Feb. 29, 2016, 10 a.m. | permalink Hi @Gooman, the fact that django gives Ty very much LeandroBrave | 1 post | Oct. 10, 2015, 5:39 p.m. | permalink Well, one of them is wrong, otherwise it would be working. The following errors occur: 1. harry | 1969 posts | PythonAnywhere staff| | June 9, 2014, 3:27 p.m. | permalink yes, I can.
in sys.path , as stated by @amyangfei Note that PYTHONPATH is a system environment variable used by python to build this sys.path and its modification is os-dependent. In scouring the web, I noticed a handful of posts about issued importing settings via fabric, but none of the resolutions touched on this issue above. For mac os see this reference , for windows this.
I am getting an error stating that there is no module named trydjango18.settings.(FYI, there project has no errors while trying to execute in local machine). I thought that was necessary for any python framework to function. be killed in the war vs be killed by the war Why is the electric field due to a charged infinite cylinder identical to that produced by an infinite line of In your WSGI file you have this: path = '/home/lelap2/my_django_project' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'my_django_project.settings' That will mean that Python will look for the settings.py file in
Who were the red-robed citizens of Jedha City? I left the settings.py as it was created on my local machine. Did you find a workaround? We try and make it as unambiguous as we can in those wsgi file comments, but, anyway, glad you figured it out!
Is three knights versus knight really winning? get redirected here Not the answer you're looking for? I am pulling my django app over from GitHub into my home directory the path to my files is: /home/lelap2/my_django_project/my_django_project/ Under the above path is my app-settings/ my_django_project/ manage.py . This is my django.wsgi: import os import sys path = '/var/www/tbg/' if path not in sys.path: sys.path.append(path) #sys.path.append(path)#['/var/www/tbg'] + sys.path os.environ['DJANGO_SETTINGS_MODULE'] = 'tbg.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() made according to
Please try again in a few moments... Not the answer you're looking for? Maybe you can try so. have a peek here Browse other questions tagged python django or ask your own question.
Running python settings.py does not return an error and my path names in the wsgi.py file are the same as those on the server. My "python settings.py" shows no error or success... I scoured the documentation and saw nothing about this, am simply assuming it's unwanted behavior.
How do you make a Canon 70D show the photo you just took on the rear display? Browse other questions tagged python django pinax or ask your own question. Browse other questions tagged python django or ask your own question. Did they reveal anything?
Edit: Full traceback: http://pastebin.com/6VTW2wWp python django apache share|improve this question edited Feb 22 '15 at 14:35 asked Feb 22 '15 at 14:27 Firkamon 15312 try path = '/var/www/tbg (no share|improve this answer answered May 19 '14 at 20:45 Pstrazzulla 22735 add a comment| up vote 8 down vote I think you need to add your stuff to the PYTHONPATH. I didn't write any code yet. http://sinistro.org/could-not/could-not-get-set-settings-from-on-resource.html But I can't find any typo :-) I'm working with a virtualenv to have python 2.7 and django1.6 Here is my wsgi.py activate_this = '/home/putyourlitterhere/.virtualenvs/django16/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this) import os import sys