Anonymous
Well, nah
Anonymous
But, I'll suggest you to read more about how this thing works.
Anonymous
you have what?
He shared URL to show what he got
Anonymous
you have what?
This site can't be reached error, the site is localhost 127.0.0.1
Anonymous
inchidi
oh
inchidi
Anonymous
😂
Anonymous
TBH I'm speechless too
Anonymous
This site can't be reached error, the site is localhost 127.0.0.1
Listen, localhost is a host that runs locally
Anonymous
Hence the name
Anonymous
Even after you successfully run server on localhost we won't be able to see it.
Anonymous
And you probably didn't run the server
Anonymous
And you probably didn't run the server
In CMD I typed: py manage.py runserver
Anonymous
And what output does it show there?
Anonymous
Share a screenshot
inchidi
Share a screenshot
*traceback with dpaste.de
Anonymous
That too
Anonymous
Share a screenshot
"Posting media content is not allowed here" message appears
Anonymous
Share a link
Anonymous
*traceback with dpaste.de
Oh, am trying figure out how to use dpaste.pe
Anonymous
Share a link
https://dpaste.de/Zn5B
Anonymous
The script is continuing to be generated in my CMD
Alibek
Hello, I have a question. I'm validating serializer and there is a foreign key field which points on parent object (I got recursive relations). I'm trying to get parent by parent = data.get('parent'). In debugger it shows correctly in watcher I'got None, the result is int() argument must be a string, a bytes-like object or a number, not 'Process'
Anonymous
Can anyone turn this to Django version 2.1.7 style:(it's a URL pattern in form of url() I want it in path() form (Django 2.1.7) (?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20}/$
Alibek
ypu can try print type(data['parent'])
Thanks. I have already made it.
inchidi
https://dpaste.de/Zn5B
you are currently following tutorial from official docs right? can you share your settings.py and models.py ?
Anonymous
woah woah what are you trying to do??
Dude finally i solved the problem
Corteis
someone have one ebook abot jinja???
Shekhar
someone have one ebook abot jinja???
official docs are more than enough
Anonymous
iam still confusing about models and database, do you have any references more than documentation?
Anonymous
not yet
Anonymous
i will, thanks
Anonymous
my purpose is create accounting and business process like, purchase, warehouse, accounting, sales to upgrade from desktop app, that i create with .net what do you think if i create with django?
Anonymous
so will intens with user input and a lot data to query
Anonymous
Cool app to build with Django 😁
so is iit possible and best choice? 😂
Anonymous
I'm writing a class based view for user login My class inherites from LoginView Now my app have several authentication backends so I get this Error: You have multiple authentication backends configured ... I have found several solutions in stack overflow for this Error BUT they are for function views. I need solution for my CBV Question is: How to specify backend in class based view? (Which is EmailAuthBackend)
Mirco
Stop please! It's not the place where post something like this
Vaibhav
Any freelancing jobs in django
Ronald
Anonymous
Stop please! It's not the place where post something like this
Thank you In case anyone wondering how it's done:
Anonymous
def form_valid(self, form): cd = form.cleaned_data user = authenticate(self.request, username=cd['email'], password=cd['password']) """Security check complete. Log the user in.""" login(self.request, user, backend='account.authentication.EmailAuthBackend') return HttpResponseRedirect(self.get_success_url())
Anonymous
Yes it works But when I remove backend from login it works too. exactly in same manner I mean login(self.request, user) But I am confused a little. Why I don't get error that you have multiple backends ...
Anonymous
When you don't specify it, Django uses ModelBackend auth from your list of backends
But I gave it email ModelBackend needs username But I'm not sure, maybe it works with email too somehow
Mirco
But I gave it email ModelBackend needs username But I'm not sure, maybe it works with email too somehow
Read more on official docs and if it's not enough, read Django source code about how backend auth works
Huzaifah
hey
Anonymous
I have two fields. One is phone_numbers another is message. Phone_numbers takes multiple lines(many phone numbers separated by newline). Want to append each phone line to message and save to database in views.py... currently when I submit it only saves the last phone number and message. any documentation reference will help.
Anonymous
Guys please help me with celery
Namitha
Hw do I search for other userprofile in django? Is django-haystack used for that?
Perumal
How to render the bootstrap css and js in django
Mirco
How to render the bootstrap css and js in django
One way is to include your bootstrap css and js into your base template
deeeeeee
What is django and what is the use of django??
Shekhar
What is django and what is the use of django??
great question 😂. How you come know about this
d.l.c
There is no pinned post
Anonymous
Welcome, please read the group rules before any activity: » Only English, avoid meta-question » Be civil, respect other people of the group » Off-topic is not allowed in the middle of ontopic conversation » Don't spam messages/stickers/commands » Promotions for other groups/channels related to django/python allowed, just make sure you are not spamming it (sharing too much) » Don't share NSFW content (ban) » Use dpaste.de, pastebin or github gist when sharing code and image sharing service to share images by joining this group, you are agree with django code of conduct here is some resource to start with django
Rohan
:)
Ashik
Is there any pycharm group available
Rohan
Is there any pycharm group available
Group for pycharm? 🤔 Why tho?