- Language: en
13 results for add in version 3.1
-
Writing database migrations
- … add unique fields Applying a “plain” migration that adds a unique non-nullable field to a table …
-
Writing custom django-admin commands
- … add_arguments ( self , parser ): parser . add_argument ( 'poll_ids' , nargs = '+' , type …
-
How to use Django with Apache and mod_wsgi
- … add the following. WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py WSGIPythonHome /path/to/venv WSGIPythonPath /path/to/mysite.com <Directory /path/to/mysite.com/mysite > <Files …
-
Overriding templates
- … add the template files to that folder: templates/ blog/ list.html post.html The template loader first …
-
Custom template tags and filters
- … adds the string xx to the end of any input. Since this introduces no dangerous …
-
Writing custom model fields
- … add a new keyword argument, you need to write code in deconstruct() that puts its value …
-
Authenticating against Django’s user database from Apache
- … add a location that you want only authenticated users to be able to view: WSGIScriptAlias …
-
Custom Lookups
- … add an index on abs(change) which would allow these queries to be very efficient …
-
How to use Django with uWSGI
- … add to it. The Django-specific options here are: chdir : The path to the directory …
-
Error reporting
- … add_view and user_change_password in the auth admin) to prevent the leaking of sensitive …
-
Authentication using REMOTE_USER
- … add the django.contrib.auth.middleware.RemoteUserMiddleware to the MIDDLEWARE setting after the django.contrib.auth.middleware.AuthenticationMiddleware : MIDDLEWARE = [ '...' , 'django.contrib.auth.middleware.AuthenticationMiddleware …
-
How to deploy with WSGI
- … add these lines at the bottom of wsgi.py : from helloworld.wsgi import HelloWorldApplication application = HelloWorldApplication ( application …
-
Integrating Django with a legacy database
- … add the app to your INSTALLED_APPS setting. By default, inspectdb creates unmanaged models. That …