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
1
vote
0 answers

Adding Cookiecutter-django users urls to i18n_patterns breaks tests

I'm having a problem with tests and internationalization. Project is Django 1.11 Python 3.5 project created with cookiecutter-django Internationalization code in settings.py: TIME_ZONE = 'UTC' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N =…
geoAndrew
  • 347
  • 1
  • 12
1
vote
1 answer

Django crispy forms - creating a form in home.html and getting an error

I have built a crispy form from a tutorial (https://godjango.com/29-crispy-forms/) and am getting an error that I believe means I need to define a URL in the urls.py. I also get the sense that there may be more than one issue going on - I am still…
Steve
  • 1,182
  • 1
  • 11
  • 25
1
vote
1 answer

How to configure i18n_patterns in Django Cookiecutter generated urls.py?

The Django Documentation gives the following example for adding language prefixes in urls: from django.conf.urls import include, url from django.conf.urls.i18n import i18n_patterns from about import views as about_views from news import views as…
Zilong Li
  • 889
  • 10
  • 23
1
vote
2 answers

Deploy django cookiecutter template on Heroku

I am trying to deploy a web on Heroku. When I run heroku run python manage.py migrate I will get some errors: django.core.exceptions.ImproperlyConfigured: Set the DJANGO_SENTRY_DSN environment variable I read the documentation on Cookiecutter, the…
Eugene Liu
  • 81
  • 5
1
vote
1 answer

django runserver startup using local settings when production was identified in .env file

I created a new project with cookiecutter django. I set the environment variable DJANGO_READ_DOT_ENV_FILE=True (setting it to False also causes the .env file to be read btw. I think that python assumes that the environment variable of True is a…
user6244541
1
vote
0 answers

Large Uploads in Django

I am working on a cookiecutter-django project that requires users to be able to upload files in the .5-1gb size range. From what I understand when uploading files that are larger then 2.5Mbs django uses the TemporaryFileUploadHandler to first upload…
DMcP89
  • 705
  • 2
  • 10
  • 26
1
vote
1 answer

Why does cookiecutter-django ask for your postgresql version?

Why does cookiecutter-django ask which version of Postgresql is installed on your machine? What does it do with this information? Update the docs? Set some settings? It appears to do nothing with this variable.
user6536435
1
vote
1 answer

Configure PyCharm to work with docker-compose

I have django-cookiecutter template setup with docker & docker-composer. It comes with preconfigured django management commands (runserver, migrate, etc.) When I'm trying to use any of those I get the following: ad381d177c42:python -u…
1
vote
0 answers

Django Cookiecutter how do i change the production media storage to local

i have a issue with the django Cookiecutter on a docker production, my problem is that the default configuration uses Amazon s3 to manage the static files and the media files, but what i want is to store these files locally on my docker.... i dont…
1
vote
1 answer

Django cookiecutter with Docker add pip package

I have created a Django project with cookiecutter-django by PyDanny with Docker. This is inside a virtualenvwrapper and I use docker-compose. No I am trying to install a package (django-admin-bootstrapped). I added django-admin-bootstrapped in 2…
Johan Vergeer
  • 5,208
  • 10
  • 48
  • 105
1
vote
1 answer

Django 1.9 ImportError when running migrate, but not runserver

I'm trying to run a new migration on a new Django 1.9 project but I'm getting an ImportError that seems to conflict with runserver. I'm running these commands from the directory which includes the manage.py file. Details: Django 1.9 Using…
1
vote
1 answer

Adding fields to custom User model with Cookiecutter Django

I am having difficulty creating custom User fields using the Cookiecutter Django framework. I have changed the cookiecutter template significantly - removing django-allauth but a lot of the structure remains the same. If I wanted to add another…
blahblahblah
  • 2,299
  • 8
  • 45
  • 60
1
vote
1 answer

Heroku deployment internal server error

I've just deployed to heroku for the first time (with a python 3 runtime) based on the cookiecutter-django template (pretty much empty for now to test deployment). However after first deployment I get an internal server error. Looking at the logs I…
Yunti
  • 6,761
  • 12
  • 61
  • 106
0
votes
0 answers

cookiecutter-django template django.db.utils.ProgrammingError: relation "django_celery_beat_periodictask" does not exist

I generated a django app using the cookiecutter template and got an error that celery_beat_periodictask does not exist. I ran the following docker-compose command: docker-compose -f local.yml up -d --build Checked the logs for individual services…
0
votes
1 answer

Django app in docker compose seems to be getting brute forced url requests with a docker ip

I have a cookiecutter-django based setup with docker-compose, with a mailing service from Mailjet with Anymail on a VPS on Vultr for staging. I use traefik as a reverse-proxy. I occasionally get emails from the app for 404 errors when I or my…