N S
I enter data into 1st mdoelform on submit i need to go to the second modelform but it shows the initial modelform itself how do i change that
Anonymous
How to sertup database
Anonymous
Mysql
Anonymous
Please help me
👍
How to sertup database
http://www.marinamele.com/taskbuster-django-tutorial/install-and-configure-mysql-for-django
Naveen
how i can send user_id to insert into db
just add the respective field to ticket variable. for example if your model has a field named user_id or something you can do ticket.user_id= request.user.id and then ticket.save() Moreover if you have foreign key you need to pass request.user instead of id
Anonymous
hi guys what diffrent between django-admin startapp and python manage.py startapp and witch one is better for use ???
Naveen
I enter data into 1st mdoelform on submit i need to go to the second modelform but it shows the initial modelform itself how do i change that
There are various methods for the same. You can create different views for the same. If first modelform form.is_valid() then you can render the next view (or page) you can use javascript too for adding a slider kind of to represent form fields separately and final submit button at the end.
Naveen
google it you will definitely find an answer.
Naveen
hi guys what diffrent between django-admin startapp and python manage.py startapp and witch one is better for use ???
django-admin is used for starting a new project whereas python manage.py is used for creating an extra app within a project. if used python manage.py startapp is better after you have already started a project
godmode
somebody who knows about searching in django?
godmode
i published the problem somedays ago... i got a formulary which is not redirecting me to the properly view and i don't know why...
godmode
hold on... i'm gonna look for the pastebin
godmode
that's all the info
godmode
hi, how's it going! I got a problem with a search formulary and i can't get why is not working on, it's seems it's not entering to the view ... this is all my code with the important parts https://pastebin.com/YaW80E2z
godmode
Any idea, i guess the problem should be in the action of the form search but is pretty weird cuz if it's redirecting to the url why the view is not executating...
godmode
Another weird thing is that i get all necessary objects to the page less posts.... so it's not doing anything...
godmode
[20/Jul/2019 20:19:05] "GET /results/?q=Lorem HTTP/1.1" 200 17545
godmode
i don't know what is wrong... i think is the html
godmode
and the action part
godmode
so, nob ody ever implemented a searching in field in django?
Naveen
Hey can you specify the error more clearly with screenshots.
Paul
django.db.utils.OperationalError: (1091, "Can't DROP 'doNotKnowMatchmaker'; check that column/key exists") подскажите по поводу ошибки
Paul
с чего вдруг всплыла не пойму
Naveen
you mean to say that whenever you press search button it goes the url results but view is not executed. i.e. ENTER IN THE VIEW is not printed
Naveen
godmode
godmode
I fixed just redirecting and looking for the post un the home view , but what i want os another Page ... With another method
godmode
And ain't don't get it...
Paul
clear all the fields in the related tables in the app it is a relation error
all the fields where i used 'doNotKnowMatchmaker'? thanks
godmode
I think i'm gomma make a push and upload this yo heroku , then i'll try yo fix this...
godmode
Ummm... But it's supposed yo be my personal blog hahaha i don't if push It free yo GitHub
Naveen
manually entering the url of results works for search or view is not working at all ?
godmode
Yes It didn't world
godmode
Work
Naveen
teamviewer
Naveen
godmode
godmode
Not... I really shared the Code un pastebin
Naveen
i am trying to understand your error can you clearly specify what is the error when you call results/?q=abcd
godmode
The Page redirect to other without the posts
Dcruz
Why i cant serialize a Knox AuthToken using Response from DRF.. ?? got Object cant be turned into JSON or something like that...
Ruffiano
I implemented JSON Field into my project. #settings.py INSTALLED_APPS = ( ... 'json_field', ... ) #models.py from json_field import JSONField from django.db import models ... class Human(models.Model): languages = JSONField() as result I got this error: from django.forms import fields, util ImportError: cannot import name 'util' from 'django.forms'
Ruffiano
You have JSON field already built-in when u use Postgres as DB No need third-party
Thank you for your prompt reply. Im useing PostgreSQL as DB, Django 2.2, Python 3.7. So, Django supports JSONField for PostgreSQL???
Ruffiano
rom django.contrib.postgres.fields import JSONField from django.db import models class Human(models.Model): name = models.CharField(max_length=200) languages = JSONField()
Ruffiano
is that correct?
Ruffiano
yup
thk u👍
Mirco
???
You've found what I meant 😄
Ruffiano
You've found what I meant 😄
Thank you👍 now it works
Anders (izzno / gooood) 🇳🇴
https://groups.google.com/forum/m/#!msg/django-developers/5CVsR9FSqmg/UiswdhLECAAJ
Anders (izzno / gooood) 🇳🇴
Asyncio is coming 👌
Mirco
Asyncio is coming 👌
yup, Andrew is doing an amazing job!
Mirco
django 3.x could be full async
Anders (izzno / gooood) 🇳🇴
In deed, looks very promising. The only caviat for me is the lack of code in the templates, which is by design I get, but takes a toll on your sanity doing all this preparation and sorting in views 😉
inchidi
i mean, its like why frontend framework like vuejs and angular exists tho
Anders (izzno / gooood) 🇳🇴
Mohit
Hello Everyone 👋
Mohit
I want to know how to create Python functions inside a html file
Mohit
So that they can be called when a user do a particular event in html page
Михаил
You can use javascript in html, not python
DCT
How to install django in windows7
Stefano
So that they can be called when a user do a particular event in html page
You have to do that inside the view, not in the html, as far as I know
Mohit
You have to do that inside the view, not in the html, as far as I know
Creating views & mapping them with url won't help
Mohit
As there would be a no. Of html pages
Anonymous
Hi can we create our own admin application in django and remove default admin app
TallYoda
How to install django in windows7
Install windows 10 and then comeback
Root
I want to create 3 types of users. Student / teacher / principal With different access level. For that, will i have to create custom user system or is there any other way to do that. Thanks :)