Anonymous
Now to figure it our
Anonymous
Out I have done in vps
Il’yar
hi guys, could you help with extra user fields?
Il’yar
I have custom user model and variable "user=models. OneToOnefield(User)"
Il’yar
But when im trying to use user.username in views.py I get an error saying that the field does not have such an attribute
Luis
Then, in that code of views.py user is not an instance of User model, or username is not an attribute of User model (I clarify: not with that name).
Il’yar
Thank you, I just got confused and did it completely wrong, but already solved the problem
R
Best resources for starting with django?
Nebiyu
The official django docs
Doragonsureiyā
Best resources for starting with django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Hey, I am implementing email verification, for now the email back end is console, when I click on confirm email link which I gets in console it's giving me some error
Anonymous
Improperly configures at /auth/registration...
Anonymous
Sending media isn't allowed!?
Mirco
No
Mirco
!rules
Doragonsureiyā
Read the rules before any activity: @PythonRules
Shaun
I am going to do some Django Programming on twitch. Any admins here? May I post a link?
blank_
Can anyone tell me that how to create datepicker in Listview using jQuery
Mohit
I am trying to setup a Django project extracted from .rar file I tired migrate after installing the requirements of the project & setting up db It gives error (1146, "Table dbname.sometable' does not exist ") When I tried to find the line that generate the error So i Find there is problem in importing models in an app from another models file in the same app in some folder. The models file that is being imported is of about 29,000 lines long. Is there any limit on importing a file of some size in django. I don't know bascicly how to resolve this issue
Mohit
Any knows any solution to resolve this issue ?
Mirco
A project extracted from a rar , brrr
Anonymous
Why template 'extends' dont work?😭 https://hastebin.com/wosonejedo.xml
Luis
Can anyone tell me that how to create datepicker in Listview using jQuery
Django is python, jQuery is Javascript; there are different worlds.
Mohit
First run make migrations
Did already gives sam error
Luis
I think that there isn't a limit in size of models.py You say that are two models in same app, one linked to another. Well, is ModelA has a ForeignKey to ModelB, then, try to create table for ModelA first will raise an error, because creation of table for ModelB should be first.
Anonymous
Where could there be a mistake?
For what template is the last output
Anonymous
index.html
Then it is correct man try for getpost and see
Luis
Where could there be a mistake?
I think that template can't be found. Try to change extends to include, I bet that don't work too; then, is not a problem with extends, it's a problem with settings and project structure.
Mohit
It even shows red line on pycharm
Mohit
Not importing the models b
Luis
So what should I do for creating models for B ?
Django can determine what model should be created first, when no migration file exist and need to create them.
Luis
Do you have existing migration files?
Anonymous
I think that template can't be found. Try to change extends to include, I bet that don't work too; then, is not a problem with extends, it's a problem with settings and project structure.
I also think that the problem is in the structure, but this is a new project, just created and I can not imagine where there might be a mistake.
Luis
Read here https://djangobook.com/mdj2-django-templates/
Luis
That's true too. To extends a template, that template should be elements enable to be extended.
Mohit
Actually that's a complete project
Mohit
That someone gave me as a rar file
Mohit
He has a windows system
Anonymous
Yes I do
Dude can u share ur project if it HV git repo
Mohit
I m.using linux
Mohit
In his sytem that works perfectly fine
Mohit
Dude can u share ur project if it HV git repo
No i don't have any git repo
Mohit
That's y he gave me .rar file
Anonymous
No i don't have any git repo
Ok then provide better error explanation
Luis
Ok, then execute python migrate app_name_01 migration_filename_n to execute migrations until that file in that way, you can apply migrations one by one, or in groups, see if error occurs, and continue until error appears, and review that(those) migration file(s), and, at least, to know what models are involved.
Mohit
But why this issue did not happen in my friends machine usnig windows ?
Luis
Well, migrations become an history of changes in models. But that changes occurs in some days (let's say 12 days), and you are trying to apply them in few minutes; maybe, in those 12 days something happened that there is not happened in your machine, or a piece of history is missing.
Камрон)
hello everyone, is there anyone who knows how to generate signature while making a request to website?
Opeyemi
hello, please who here has worked extensively with django-rest-auth?
Doragonsureiyā
hello, please who here has worked extensively with django-rest-auth?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
saran
Hello, any alternatives for django formset? Same functionality but much easier. Anything like that. Anyone used.?
cj
Hello, any alternatives for django formset? Same functionality but much easier. Anything like that. Anyone used.?
you won't find anything easier than formsets they are already easy to use
saran
Okay.
Aneesh
Is there anyone know how to get the url in python
Doragonsureiyā
Is there anyone know how to get the url in python
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
saran
Heyy.. I just created a formset. But its not showing add another and remove links along with that form. What might be the reason? Any suggestions
Anonymous
Heyy, how can I fetch all the details of a single data from database in django. For example if I select name all the data for that particular name such as name city school are fetched out.
foscraft
How to deploy Django project on server and make site live free
try pythonanywhere.com much simpler and easy
Gil
Want to fetch data in frontend.
Are you using djangoadmin, or you ownfrontend?
Anonymous
Django admin but wanna display on html frontend.
Nitish
is it possible to use phone number as username using AbstractUser ?
Nitish
or is it possible only with AbstractBaseUser ? please ans me its a big doubt for me
Ayomide
But you have to define it in the meta class
Ayomide
Been a while i did something like this....but its possible
Nitish
but using AbstractUser it is giving issue while creating superuser
Gil
Django admin but wanna display on html frontend.
For Frontend: You need to play with querysets and passing context variables to django templates: https://docs.djangoproject.com/en/3.0/ref/models/querysets/ https://docs.djangoproject.com/en/3.0/topics/templates/#the-django-template-language For Admin: Maybe list_filter is enought for you? https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter