Jai
Which one
LoginRequired
Jai
Anyone?
They use default names for templates
kancharla
LoginRequired
I have 2kinds of users in my project I have to restrict one of user groups from accessing certain kind of views
kancharla
I think this is not suitable
Jai
How does Django choose template name for CreateView when I don’t specify it - Stack Overflow https://stackoverflow.com/questions/55315031/how-does-django-choose-template-name-for-createview-when-i-don-t-specify-it
kancharla
How to do that any reference
S Bhardwaj
I am not able to run my administration page in django as local host is working fine
Darth✧
How to do that any reference
https://youtu.be/eBsc65jTKvw
Jai
Helped a lot thanks
Your welcome! :-)
S Bhardwaj
create superuser
Please help me to make super user
Jai
How to get started with API's in Django?
S Bhardwaj
Darth✧
Please help me to make super user
python manage.py createsuperuser
Jai
Provide me commands
python manage.py createsuperuser
Darth✧
How to get started with API's in Django?
May be with django rest framework
Mihir
How to get started with API's in Django?
have you studied rest framework?
Jai
May be with django rest framework
Can you suggest me some tutorials?
Darth✧
👌
Jai
Docs
Okay!
Darth✧
Tnq
Wlcm
Jai
Should I start with REST framework first?
S Bhardwaj
May be with django rest framework
It was successfully created when i tried to run on local host its not running show a message this site cant be reached 127.0.0 1 refused to connect
S Bhardwaj
127.0.0.1:8000 working fine but
S Bhardwaj
127.0.0.1:8000/admin not
S Bhardwaj
Darth✧
Run thisncommand
Is there any error ?
S Bhardwaj
Is there any error ?
No everything is fine local host is running but not /admin
Darth✧
No everything is fine local host is running but not /admin
You have logged in with that superuser id that u have just created. Right?
VarunTheLord
No everything is fine local host is running but not /admin
Check if it has admin is added in path, only then admin page will open
S Bhardwaj
You have logged in with that superuser id that u have just created. Right?
Unable to login as it shows error on browser this site can't be reached 127.0.0.1 refued to connect error_connection_refused
S Bhardwaj
Check your urls.py
Urls.py of my app or project
VarunTheLord
Project
S Bhardwaj
Check if it has admin is added in path, only then admin page will open
Yes already added urlpatters=[ path('admin/',admin.site.urls) Path('',include('home.urls'))]
Mihir
runserver kiya hai na?
VarunTheLord
There's no , after the )
Jai
There's no , after the )
That should've given an error though before running!
VarunTheLord
Try only this urlpatters=[ path('admin/',admin.site.urls), ]
Swapnil
I already deployed django project on heroku server
Swapnil
but I want to change in settings.py file and again deploy it
Swapnil
Anyone can tell me how to add ??
S Bhardwaj
It was successfully created when i tried to run on local host its not running show a message this site cant be reached 127.0.0 1 refused to connect
Anonymous
I am a newbie in Django. Can anyone help me ???
Doragonsureiyā
I am a newbie in Django. Can anyone help me ???
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rupesh
Any one asp.net developer in this group ???
Samarth
Page not found 404 Using the URLconf defined in youTube_python.urls, django tried these URL patterns, in this orders: 1. debug/ 2. admin/ The empty path didnt match any of these
Samarth
Please help 😩😩
Shihasz
Please help 😩😩
!paste, check ur urls.py
Doragonsureiyā
Please help 😩😩
To share code or error tracebacks please 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
Darth✧
https://linkode.org/#4LwUuPmNpxwcpQqAh3Aem6
Darth✧
https://linkode.org/#4LwUuPmNpxwcpQqAh3Aem6
NOT NULL constraint failed: user_profile_selectgroups.user_id
Darth✧
whts the problm ? anybody pls
Anonymous
After deleting anaconda in my Ubuntu am trying to install python 3 as default so that I can install Django back but to no avail
Anonymous
NOT NULL constraint failed: user_profile_selectgroups.user_id
user_id is a required field and you are trying to submit the form without providing value for it
S Bhardwaj
Just copy the link showing in the terminal and run on browser
Did it but not able to run local host running perfectly but bot django administration
S Bhardwaj
I think there may be problm with localhost
But local host running perfectly fine
Anonymous
Hi guys Little ı gave porblem , When method post ı cant filter models ?? why anyone ıhave idea ,def index(request): room = Room.objects.all() restaurant = Restaurant.objects.all() if request.method == "GET": if request.GET.get("email"): saverrecord = Email() saverrecord.email = request.GET.get('email') saverrecord.save() messages.success(request, 'Email.....OK !!') return redirect('/') else: return render(request, 'central/index.html') context = { 'room': room, 'restaurant': restaurant, } return render(request, 'central/index.html', context) ,
Anonymous
Now Method == GET its workinf orgm
Anonymous
**when Method==post Notworking why
Jai
Did you ensure your template hai <form method=post>
Anonymous
yeah
Anonymous
and codeı was give example upstairs
Anonymous
ım try use tepmlates forms