Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Aman
Based on the result of Maintenance = models.BooleanField(choices=BOOL_CHOICES,default=False) this filed in models.py
Aman
I want this to take values Maintenance_Reason= models.CharField(max_length= 100)
In admin page
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results
Damir
I wrote querysets and i think they are terrifying. Can i post code here to ask if they really are that bad?
Manuel
Has anyone worked with django rest framework
Manuel
When I do an API and I have several post methods inside of a class doing class based views do I have to name those methods the same name or different ??
if not settings.DEBUG:
REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES':
'aps.authentication.DoubleCookieAuthentication',
]}
if settings.DEBUG:
REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.BasicAuthentication',
'aps.authentication.DoubleCookieAuthentication',]} i tried this but it is in Basic Auth only, please anyone help me how to do
Hello guys! What better for store development, django or CMS?
Mohammad
sudo docker-compose run --rm app sh -c "python manage.py test && flake8 "
Creating recipe-app-api_app_run ... done
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
..
----------------------------------------------------------------------
Ran 2 tests in 0.002s
OK
Destroying test database for alias 'default'...
./app/tests.py:1:35: W291 trailing whitespace
./app/tests.py:7:1: E303 too many blank lines (3)
./app/tests.py:29:45: W292 no newline at end of file
./app/calc.py:11:1: E302 expected 2 blank lines, found 1
./app/calc.py:13:19: W292 no newline at end of file
ERROR: 1
please help me!!
Тарек
Hello everyone!
I'm begginer, and have a problem: how to transfer some value from view to template trough redirect?
Sam
Hi all
Can any one let me know how to apply multiple sorting with django
Lesson number one: Always read what the machine tells you
Ricco
Hi, has anyone here worked with django-tenant-schemas I need help in configuring the templates for the tenants, also do I need to configure my app with wamp server inorder to see all the subdomains created? Thanks in advance.
Ekansh
Hi everyone.
I created a project with express mongodb as backend.
I'm thinking of creating an admin application for my existing mongodb database with some data in it.
I don't want to lose any of the data entered.
I looked at the internet but did not get any response on how to migrate existing database to Django admin.
Please help if you have some time :)
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you post a wall of text (many lines), delete it or you can get a warn strike.
I want to build a backend which allows a user to schedule appointment by looking at a service( business service like Salon, Spa, ) calendar and book a slot which is available.
It would be great if someone can direct me to right path where there are enough resources to understand basic of scheduling calendar events with django rest framework.
I have problems with the token that is returned to me after I send a request for auth/convert-token, when I try to log in with this token, I get this error
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
Arslan
I also use simple jwt
Favas
I have problem i can't upload image when i am hosted but in the local host its working please help me
and i wrote such scope
SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile',
]