legios89 / django-docker-bootstrap Goto Github PK
View Code? Open in Web Editor NEWDjango development/production environment with docker
Django development/production environment with docker
Currently, the email do not allow to send an email if the server not runs on the user own machine.
Add dependency: python-dev, Markdown
Plus make it clear that the docker works only in 64 bit OS
If you set the COMPOSE_FILE to use a specific file, the every time the docker-compose try to use this file for every project.
Possible solutions:
- Somehow change this ENV if the user enters the a project directory for a project specific value.
- Use cookiecutter: https://github.com/audreyr/cookiecutter
The cookiecutter doesn't create an empty folder + this folder only needed if the user use react so I think the nodejs should create it if it does not exist.
Hi,
I am using production-docker-compose.yml file to run the project but its giving me 502 error
I have check the nginx logs and found this error:
2016/09/29 05:38:28 [crit] 11#11: *1 connect() to unix:///data/sock/uwsgi.so
ck failed (2: No such file or directory) while connecting to upstream, clien
t: 172.17.0.1, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "uw
sgi://unix:///data/sock/uwsgi.sock:", host: "0.0.0.0", referrer: "http://0.0
.0.0/"
and in my project setup I have no data folder.
Any help on this.
Thanks in advance
The docker-compose.yml should use TRUE and the production-docker-compose.yml should use False
Integrate the REST framework, for me, it's hard to imagine any project without this so I don't want to make this optional. (Easy to debug queries, check data, communicate with frontend, etc..)
The file upload process should store the file in the data container.
Hi,
I am not able to create locale folder in src directory as I need to do some changes in locale file. Can you please tell me how locale file for particular language can be created.
I am using following command in django shell for generating it with no success
django-admin makemessages -l zh-hans
Please help
Thanks
Hi,
In django;s run.py file there is three line of code which is giving permission error:
ensure_dir('/data/logs/django', owner='developer', group='developer')
ensure_dir('/data/static', owner='developer', group='developer')
ensure_dir('/src/locale', owner='developer', group='developer')
Error:
chown: changing ownership of ‘/data/static’: Operation not permitted
django_1 | chgrp: changing group of ‘/data/static’: Operation not permitted
django_1 | chmod: changing permissions of ‘/data/static’: Operation not permitted
so because of this there is no data or src/locale folder in my project setup and when I running the project in DEBUF- false mode it is running collestatuc command which is also giving permission error like below:
PermissionError: [Errno 13] Permission denied: '/data/static/images'
raise CalledProcessError(retcode, process.args, output=output)
django_1 | subprocess.CalledProcessError: Command '['django-admin', 'collectstatic', '--noinput', '-i', 'react']' returned non-zero exit status 1
Any help on this
Thanks
Hi All,
I am using the django-docker-bootstrap in my project and its need to run cron job and for that I have installed the django package CronTab. And I have define one function for that by using the below URL. Now I am running command djano-admin crontab add and it is giving erorr:
sh: 1: /usr/bin/crontab: not found
Can any one please tell me how to add cron job into crontab.
I have installed the CRONTAB using the below link:
https://pypi.python.org/pypi/django-crontab
Thanks in advance
Do not run the migration automatically, it can cause unexpected behavior
pyc clean maybe?
In this way, it will be easier to update it.
buildall.sh
Currently, if you want to host multiple projects in the same environment, the created images override each other.
I set the DEBUG='False' in the env.txt but the system still runs with DEBUG True mode.
The rosetta has the following option: ROSETTA_UWSGI_AUTO_RELOAD
In production, I don't want to restart the server every time a translator press the save button instead I want to add a publish button what can restart the uWSGI if the user pressed it.
The db_connect function should stop if the password is wrong, not try again and again...
if I set no rosetta then the admin page death
docker-compose can do docker-compose build
, from 1.7 it can even do docker-compose up --build
.
We can set the build context in the yml file, no need to have a different script.
Make it cleaner why I need a data and what it's do.
Some kind of help text maybe?
/jsi18n/ url always downloaded with the English prefix /en/jsi18n/
It should use the currently active language
react/node_modules/* in src_gitignore only needed if the user installed the react module
What do you think about creating two folders in root:
root
|
|- dev
| |- docker-compose.yml
|- prod
| |- docker-compose.yml
|...
This way it is enough to just cd
into the folder and dc up
, etc. No need to reference the compose file.
The base image already contains the python3-pip package.
Make it possible to translate the javascript files too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.