Victor
Thanks i delete all previous migrations and edited the code to "gender = models.CharField(
None, max_length=1, choices=GENDER_CHOICES)"... and the error stoped
Mirco
Victor
Victor
Victor
Victor
"django.db.utils.ProgrammingError: column login_checkin.gender does not exist
LINE 1: ...eckin"."first_name", "login_checkin"."last_name", "login_che... " what could cause this error?
Anonymous
Did u do a migration after updating the models
Victor
yes ...but i think for some unknown reasons it didn't add the column
Jor
You have instances without gender then
Victor
i used pgadmin to check and its not there
Jor
You can populares them with shell, or before using .gender ask if exists, if dont, return some string
Jor
Populate*
Victor
🆗
Jor
There are Lot of users?
Victor
no just me
Jor
Try asigning gender in the admin
Kushal
Unit testing API
I haven't proper idea.
I want to elaborate knowledge on this.
Abeeb
Hello guys. Weldone
Please I'm new to django.
How important is Class Based View (CBV)?
Is it important to be using class based view or function based view.
Which one is best for simplicity and flexibility?
Jor
Cbv until you need something that is very complex for cbv
Abeeb
A Kumar
Abeeb
Kushal
Please suggest me good tutorials for Unit Testing API
Prateek
Hello, In adsense it is saying I need to upload ads.txt in root directory , can anyone tell django where should I upload is it static?
Unknown
I always have problems when sending post,delete request using ajax in Django I really need some examples.Most of the examples on the internet use Get request in ajax which doesn't lead to 403 error.I also don't know that should I create separate views for each ajax request or what? Please help.
Unknown
I am also confused that I should use django-dajax or not because it uses very old version of jQuery.
Anonymous
Anonymous
Unknown
Anonymous
Yes
What is the problem then, you just dont know how to handle csrf token?
Unknown
Anonymous
Yeah I always get 403 error.
If your script is in the template itself it wont be problem, if it is in static js files you should use alternative way
Unknown
Anonymous
in second case save csrf token and url to an attribute of that element, that should make an ajax call, for example data-csrf={% csrf_token %}
data-url={% url 'url_name' %}, then you can get correct url and csrf_token in your static js file using jquery attr() method
Unknown
Unknown
Thanks I will try again
Anonymous
Unknown
kancharla
Does any one know how to verify phn number at free of cost
kancharla
Unknown
Anonymous
Presence
Hi guys.... I'm using dj-rest-auth for authentication... While logging in.. it gives username e-mail and password json... But my front end accepts only email and password... Is there anyway to only fetch e-mail and password from django?
Deep
Hey folks. How can i implement user privilege assignment module in template. Like this images
Mirco
Victor
techy
when i doing debug= false my model data not showing in templates . its show server error 500 what i am doing wrong ?
Shihasz
Shihasz
techy
Doragonsureiyā
my allowed_host is '*'
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
techy
techy
https://hastebin.com/xodevuqoyu.py
techy
my setting.py file
techy
Anonymous
Subroto
getting 404 page error in <a class="nav-link" href="/contact">Contact Us</a>
Its not going on the /contact page ..anybody can help
Mirco
Darth✧
Django 3.1 released
Mirco
it will be released on August , the final one
Darth✧
Yes
Darth✧
Its under development
Mirco
nope, it's the release candidate
the under development stage is gone
now they are ready to fix some urgent bugs if any and release another RC but the under development time is already gone
Random
How to configure vuejs for django
Random
?
Random
I tried hello world vue test
Random
With src CDN of vuejs
Roman
Hi guys if someone used django-storage. I have Google bucket and the way ti works it gives me the image with expire date. Is it possible to get normal link of that ?
Mirco
!djangotut
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Ashutosh
Do u understand hindi???