Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I get the same error everytime I try to deploy my app using Heroku
'ImportError: No module named easy_thumbnails.optimize'
My app was running just fine locally on Django but since I moved it to deploy it on heroku I am getting this error
My github can be found at https://github.com/henrigeek/Django
Thanks for your help
You don't have a requirements.txt file, so Heroku cannot install your dependencies, which presumably include easy_thumbnails as well as Django.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have completed a project in Django on my Windows PC without creating a virtual env. Now, I feel I should have a virtual env.
Please, do explain to me in steps to create a virtualenvwrapper and put my project into the same.
Thank you in advance.
In windows you can create virtual environment using the command,
python -m venv .venv(virtual_env_name)
In your project directory, run
python -m venv .venv
To activate your virtual environment, run
.venv\Scripts\activate
And install your packages inside virtual env
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
My web page using framework 7 can be loaded on my local desktop, but is not working on gh-pages
I think, Index.html is loaded correctly but there is some error on there.
I will attach related links about my web page to let you understand easily.
https://hahmmj.github.io/IPP20201_HALFSTACK/
https://github.com/hahmmj/IPP20201_HALFSTACK/tree/gh-pages
Before running it on the local drive, I inserted the following statement, which is recommended on forum web site, due to some errors:
npm uninstall copy-webpack-plugin
npm install copy-webpack-plugin#6.2.1
Should I add this sentences also in package.json file to publish my web site using github pages?
First, see my comment on fixing your directory structure. You can fix that as simply as:
mv docs src
Then run the following commands:
npm install
npm run build-prod
Your page in now ready inside folder www.
Now you have to overwrite the contents of your gh-pages branch with the files generated inside www.
you have messed up with the directory structure of your website . In a ideal case you should be able to see your hosted page on GitHub by entering the URL like this
https://hahmmj.github.io/IPP20201_HALFSTACK/docs/index.html
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I have seen some pages with title deploy django with docker .
I deploy just with nginx & gunicorn and its awesome .
Is docker good for deploying django app ?
Does it make application faster or with better performance ?
So whats the main purpose ?
Docker helps developers bring their ideas to life by conquering the complexity of app development. It packages your Django app and creates a run time making sure that it works the same on all machines.
"But, It works on my system" - Developer without docker!
Also, you might be using nginx and gunicorn with Docker as well for hosting your django app. Containerization is a generic concept to have a machine independent run time to package everything. It simplifies your deployment process.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
Note: This questions has been asked before, but none of the answers provided worked for me.
I deployed a django app on heroku and then made changes to my model after which i run migrations locally(python manage.py makemigrations and python manage.py migrate). The app works fine after the changes locally, but on the server, I run into the programming error below:
django.db.utils.ProgrammingError: column "product_owner_id" of relation "cart_cartitem" does not exist.
I run python manage.py migrate on the server, but I still get the same error. I also run python manage.py makemigrations on the server and it says No Changes detected.
What I am doing wrong? Thank you
Error fixed. I was pushing from a different directory
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a ubuntu instance on AWS and I has installed some packages, and they make some errors.
Now I want clear everything and reinstall ubuntu.
Its easier to provision a new instance than re-use the same. If you have to stick with the instance then try removing/purging the packages you have installed. You can also run autoremove post removal of your packages to cleanup unwanted dependency which might have got installed.