I have version 1.3.1 Django installed on my shared hosting plan. It works fine. The problem is i need to update it to 1.4 but i'm getting an error
error: could not delete '/usr/lib/python2.6/site-packages/django/templatetags/__init__.py': Permission denied
I contacted their support, they said they can't update it. They said that i should check the Django forums for any possible solution.
Anyone had such an issue and was able to solve it? I'm hosting with Hostgator.
solved:
python setup.py install --user
Related
I was running Django 1.11 with Python 3.5 and I decided to upgrade to Python 3.6.
Most things worked well, but I am having issues connection to AWS S3. I know that they have a new boto version boto3 and that django-storages is a little outdated, so now there is django-storages-redux.
I've been trying multiple combinations of boto/boto3 and django-storages-redux/django-storages to see if it works. But I'm getting a lot of erros, from SSL connection failing to the whole website being offline due to server errors. The newest is my website throwing a 400 Bad Request to all urls.
My app does run on Python 3.5, so I'm confident that the issue is around collectstatic and S3.
Is there anybody here who made a similar update work and tell me what configuration was used?
Thanks a lot!
Found the issue.
Django-storages-redux was temporarily replacing django-storages since it's development had been interrupted.
Now the django-storages team restarted to support it.
That means that the correct configuration to use is: django-storages + boto3
Django==1.10.5. i have isntalled - pip install python-social-auth==0.2.12. Then addes social.apps.djang_app.default to the INSTALLED_APP settings. After wanted to sync python-social-auth model with Database
python projectname\manage.py migrate
But i got an error: AppRegistryNotReady:Apps aren't loaded yet
0.2.12 is outdated and the library itself is deprecated.
Consider trying newer version or switching to django-allauth instead.
I'd like my users to be able to log in to my django project using their google accounts login (instead of having to sign up and create a new one). I found this : http://learnedstuffs.wordpress.com/2012/05/22/django-google-account-authentication/
But it doesn't work for me. After deploying my project in to Google apps engine it shows an error: ImportError: No module named django_openid_auth. I've checked many times - i did install django-openid-auth (by virtualenv). I'm new to django and I have no idea what I'm doing wrong.
Can anybody please help me with it? Thanks!
I found the solution: Packages installed in system or virtualenv environments won't get uploaded to GAE production servers. Packages should be in GAE project folder.
I am following the tutorial for deploying a django project on AWS elastic beanstalk here:
http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html
My app works when I test locally but when I deploy, I'm getting a 404 error. Looking at the event logs, I see this message:
Error running user's commands : An error occurred running '. /opt/python/ondeck/env && PYTHONPATH=/opt/python/ondeck/app: django-admin.py syncdb --noinput' (rc: 127) /bin/sh: django-admin.py: command not found
That leads me to believe that the tutorial is missing a part about installing django files on the server or at least configuring my project to recognize django-admin.py. I have django installed on my local machine so it works there.
I know python support is brand new for elastic beanstalk but has anyone deployed django to it?
I believe you don't need to put container_commands in .config because there is no database or table at this moment.
Did you made the step?: Freeze the requirements.txt file.
(djangodev)# pip freeze > requirements.txt
Note
Make sure your requirements.txt file contains the following:
Django==1.4.1
MySQL-python==1.2.3
I had the same problem because I skipped it. Once I did it, add, commit and push. It works!
I followed the same tutorial recently and had a similar result.
At step 6, upon seeing the default django 'congrats' page render locally, I deployed to EB as instructed and got a 404 instead of the default 'congrats' page.
I decided to use the code up to that point as a foundation for following the 'getting started with django tutorial' which led me to a successful rendering of a 'home' view. This is a much more useful place to be anyway. I do agree that there is something wrong with the AWS tutorial and posted to the AWS forums here.
If you can, you should try to access the log file; it might give you a better idea of what's going on. Here's a link that might help:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.loggingS3.title.html
I cancelled a deployment to GAE while using django non-rel's manage.py deploy.
Now when I try to redeploy it says Another transaciton is already in progress and use appcfg to rollback.
But django non-rel doesn't have appcfg.py so how can I rollback or fix this issue?
I've scoured the internet and can't find any answers. I've waited about half an hour and it still displays this message.
manage.py deploy calls appcfg.py in order to deploy.
appcfg.py is in the SDK. you must have the SDK installed somewhere if "manage.py deploy" is working. you can look around for it, or download the SDK again.
There's no reason you don't have access to appcfg.py
If you need more help finding it, add details about what platform you're running on, where you installed the appengine SDK and where your python folder is.
What do you mean by "I don't have access to appcfg.py"?
Try going to cmd (for windows), navigate to your app directory, and type in the following:
appcfg.py rollback .
Hit return (enter key) and see if that works. If not, what does it display?