Questions tagged [cookiecutter-django]

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.

Powered by Cookiecutter, Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly. It is an open source tool, designed with best practices in mind to move the boilerplate of building deployable Django projects out of the way.

222 questions
2
votes
1 answer

@shared_task decorator doesn't work

The problem: @shared_task decorator doesn't work, when I import data from custom files. I mean, when I start celery, all tasks under @shared_task doesn't appear in list of tasks. For example, in this case @shared_task decorator doesn't work: from…
2
votes
2 answers

Supervisor on a Digital Ocean docker image

(beginner question) I've successfully setup a nginx+gunicorn+django docker image on a Digital Ocean droplet. My Django project follows the very good Cookie-Cutter-Django pattern (see here). In this doc, there is a description of a supervisor…
bixente57
  • 1,328
  • 4
  • 14
  • 29
2
votes
1 answer

cookiecutter-django docker PyCharm server config setup

I am using cookiecutter-django with docker. It works nicely when I manually run the docker server. I would like to use the Django server configurations from PyCharm to quickly run the server. I would appreciate some help on how to set it up. As an…
Eraldo
  • 535
  • 8
  • 17
2
votes
1 answer

What versioning workflow is recommended for a Cookiecutter Django project?

I've seen that __version__ lives inside project_slug/__init__.py, so my question is when I'm updating a version I should both edit this file and git tag with the new version or am I missing something?
user1182765
2
votes
1 answer

Creating multiple registration forms in allauth using cookiecutter-django template

I'm new to django, working on a website requiring multiple types of registrations, needing two seperate forms, and basing myself off of cookiecutter-django's template, which utilizes allauth. I'd still like to retain allauth's email confirmation…
mitbanip
  • 179
  • 3
  • 13
2
votes
1 answer

Basic form processing with cookiecutter django

I have installed cookiecutter django and have gotten everything up and running. I have encountered a problem where an update view is not updating the model. It just keeps redirecting the flow to itself. dream/models.py class Dream(models.Model): …
user6244541
1
vote
0 answers

Cookie cutter for packaging Django app as a python package

There is a need of creating a Django project inside a python package and later package it as a python package. Current thought : Can I use poetry-cookie cutter to create python package and django-cookie cutter for the project that is going to be…
1
vote
1 answer

when I change admin URL, my project API URL not found. how can I solve it?

when I change the URL link path("admin/", admin.site.urls), to path("", admin.site.urls), it works fine but raises API Not Found Error when I have the following urlpatterns. I need path("api/", include("config.api_router")), Note: when I use …
1
vote
0 answers

Create Directory and Change Permissions in Cookiecutter Django with selenium/standalone-chrome-debug

I need some help incorporating a solution to a problem I have encountered from someone with a bit more Docker experience than me! I am using Cookiecutter-Django with Docker to host my Django app. I have included Selenium using…
1
vote
1 answer

Cookiecutter Django - ListView expects templates in different directory to Views?

Cookiecutter generates the app users automatically under my_project directory. I've placed my_app in the same directory / listed it under INSTALLED_APPS and it works fine. I then created my templates folder under my_project/templates/my_app/ (same…
ron_g
  • 1,474
  • 2
  • 21
  • 39
1
vote
1 answer

Use cookiecutter-django-mysql to initialize the project and execute python manage.py migrate to report an error

everyone. This is my first time asking a question on stackoverflow, please take care~ First I created the project through cookiecutter https://github.com/mabdullahadeel/cookiecutter-django-mysq and chose mysql5.7 as the storage database Second I…
1
vote
1 answer

reverse(thing) django rest framework in a viewset

The main question is: What is the rest framework ViewSet friendly way to make the reverse routes? In a django cookiecutter site I have api_router.py with this router.register(r"users", UserViewSet) router.register(r"userprofile", UserProfileViewSet,…
Back2Basics
  • 7,406
  • 2
  • 32
  • 45
1
vote
1 answer

Connection refused with psql django and docker (cookiecutter-django)

My django app is failing to connect to the psql container with the standard connection refused error. I used django-cookiecutter which supplies the psql username and password automatically via environment variables and then this I gather is passed…
Cam Rail
  • 177
  • 1
  • 2
  • 11
1
vote
1 answer

Remove allauth from Django project created by cookiecutter

I am at a beginning of a "company web app project". I tried a Django cookiecutter template, and so far I like what I see. What I see I won't need is the user registration, password reset, social-app logins, and so on, because I will use LDAP for my…
1
vote
1 answer

How to add site models to Cookiecutter Django project

I have a Cookiecutter Django project in which I'd like to add a "SiteSettings" model to control constants. My first instinct was to run manage.py startapp site. However I received the following message: CommandError: 'site' conflicts with the name…