bmjh
Yeah I've got a custom app for exactly that sort of thing, I import the 'tests' module from that app for tests in other apps. It's nice.
<app_name>/management/commands/
folder. See e.g. this blog for a quick intro.
@LukeVideo Exactly. Do the hard stuff first.
The only way to do professional software development is Continuous Delivery from day one. Everything else is hobbyist hacking.
for a two week project
Let's talk again in two weeks. If you don't do the hard stuff first you'll never meet tight deadlines.
Let's talk again in two weeks. If you don't do the hard stuff first you'll never meet tight deadlines.
agreed
At least get a proper setup with gunicorn and nginx.
I would suggest to do everything with Docker and Docker Compose locally. The whole uwsgi/gunicorn/nginx/... setup should run locally first.
Unfortunately, the Django Cookiecutter is not a super example for deployment and deployment automation.
A better role model may be in the painless-continuous-delivery cookiecutter. It's a few months, though, that I plan to revise it.
are these scripts just for initial data? will they be run more than once? daily?
The scripts will run from a cron job once in a while(a week). and the dashboard would show any updates
Can anyone help me at cart api, please? I am struggling to save the products into the basket(cart). I need to save both in database and in session.
I have create a gist for that.
Here it is.
https://gist.github.com/MilanRgm/02b71d10da642788c06b088032446904
@mamehussen
Is there a cookiecutter tutorial ?
Try the painless-continuous-delivery
cookiecutter to create your Django project. There are only 2 steps to do (copy-and-paste in your terminal).
(If you run into permission problems and don't know what to do - hint: virtualenv - then try pip install --user cookiecutter
.)