Doragonsureiyā
Iam new to django where I can sample project so that I could get the most of the basic of django
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
N
Any other suggestions 🥲
N
github.com
But will I get a explanation to that there
Ankit
Can anyone tell me about class view function
M
I am testing the new functionality for 3.2 release
Mohammad
How can I put all three objects in a division when rendering objects of a model in the template?
M
Can anyone tell me about class view function
U want the concept or example, view functions is just a funtion that recive a request and return a response, inside you can do whatever you want, then this function is mapped to a url and that´s all, for more details go to de doc
M
https://docs.djangoproject.com/en/3.1/topics/http/views/
Ankit
I want to know about class view
Anonymous
Open serverda muammo buvoti
Anonymous
Maslahat bervorila
Anonymous
Brat inglizcha yozing😅😅
Anonymous
I have a startup www.center-stage.online Looking for a great Django guy to partner with. Please DM for details Thanks
Doragonsureiyā
I have a startup www.center-stage.online Looking for a great Django guy to partner with. Please DM for details Thanks
Rule 🔟: Job/task offers are only allowed in the offtopic chat - @PythonOfftopic. To avoid being marked as spam, make your offer include skillset/techstack, salary/reward, contact information and a brief description of what work you want done.
Ramil
Hello! Tell me how to bind models in Django?
Anonymous
How can I call an endpoint from another endpoint?
Anonymous
Something like: request.get(localhost)
Anonymous
Request from a view, to another view in the same app
Mirco
Anonymous
Just use reverse to call the view
Shouldnt i user aiohttp?
Mirco
Shouldnt i user aiohttp?
Why ? It depends if you are using sync or async views first
Anonymous
Im using async
Mirco
Im using async
Ok so aiohttp is 👍
It's me
im getting this error
It's me
UnboundLocalError at /registration local variable 'registration' referenced before assignment Request Method: POST Request URL: http://127.0.0.1:8000/registration Django Version: 3.1.7 Exception Type: UnboundLocalError Exception Value: local variable 'registration' referenced before assignment Exception Location: /home/nilesh/secondhand/store/views.py, line 41, in registration Python Executable: /usr/bin/python3 Python Version: 3.8.5 Python Path: ['/home/nilesh/secondhand', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/nilesh/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Server time: Tue, 06 Apr 2021 21:27:17 +0000
It's me
cos of registration= registration(username=username, email=email, password=password, datetime=datetime.today()).save()
It's me
It's a normal python error For example you are using that variable outside a block where you are assigning to it something
i did def registration(request): if request.method=="POST": username=request.POST['username'] email=request.POST['email'] password=request.POST['password'] registration= registration(username=username, email=email, password=password, datetime=datetime.today()).save() print("user created") return redirect("/login") else: return render(request,"store/registration_from.html")
It's me
Don't use the same name for the view and the registration variable and function
i change but same error register_form= register_form(username=username, email=email, password=password, datetime=datetime.today()).save()
It's me
Don't use the same name for variable and function! Study python before Django!
i have change it from registration to register_form my function is registration
Mirco
i have change it from registration to register_form my function is registration
register_form = register_form(... is the source of your error _register_form = registration_util(... will work
Khumoyun
Hello, project: Django 3.1 QUESTION: Why browsers display different date formats? I have problems with this formats
sainath
Hi everyone, I have a doubt.. Is "two scoops of django" book is worth learning?
jose
Good someone who can help me in the internal chat with sending registration verification email with django rest framework, it already works for me but I want to add a template and not only the verification link etc, if anyone wants I show you my code and collaborate with a guide on how to achieve it, grace!
Ononiwu Maureen
Hello this one is just pure python script
Ononiwu Maureen
Can't attach file
Agent Q
Can't attach file
Use a pastebin service
Nishant
How to resolve..Template doesn't found ??
Nishant
Can you elaborate?
I want to make a quiz portal and I'm stuck there are there html files base, main,quiz when I'm extends base.html in base .html then I got an error named template doesn't found
Nishant
Only the base.html file shows me that error
Nishant
How do I do that bro 😅
Nishant
It's in my laptop
Agent Q
It's in my laptop
Install Telegram on your laptop
Agent Q
How do I do that bro 😅
Copy paste your Stacktrace to a pastebin service
Agent Q
Then share the pastebin link here
nightescapist
When i was updated my user(abstractuser) after the migration it was getting an error
Tukhtamurod
Only the base.html file shows me that error
Make sure it is right inside the templates folder, when you say extend, it looks for the base.html from there
bot
Hey I'm facing issues in registering my app in settings installed apps. Can someone help over a chat or video call. I'm stuck from 2 days.
.
If anyone need Django training videos DM me
bot
Have u registered them on installed app
That's the issue. I am not able to register it in installed apps.
Anonymous
That's the issue. I am not able to register it in installed apps.
Remember that you have to put a comma at the end of the name of each application on installed apps
Nice
Could not parse the remainder : ''polls/style.css' from ''polls/style.css'
Nice
Which one models.py or tests.py
Agent Q
Could not parse the remainder : ''polls/style.css' from ''polls/style.css'
You could have wrongly coded it. Some reference: https://stackoverflow.com/questions/50791827/why-do-i-have-this-error-in-django
Agent Q
Which one models.py or tests.py
Understand Stacktrace: https://www.scalyr.com/blog/python-stack-trace-understanding-using-debug/