Doragonsureiyā
This is my new error
To share code or error tracebacks please use an online pasting service, here is a list: - https://hastebin.com - https://del.dog - https://linkode.org
#
https://del.dog/ocenapovet
Anonymous
hello I new with django I've just built my first project so I have a little question about "list_display" I specified some model field to show in admin page but there is nothing show there what's the possible reasons for this problem?
Jamshid
Hello everybody!! How much time takes learning the django framework if i'am beginner?
Yar
You can create sites with django today already, just open documentation.
Yar
You will create sites faster with time.
Tsega
Hello everyone. I want to work with GeoDjango, any ideas about where to start? Thanks
pvs
Guys anyone using django apshceduler
Dennoh
Yeah
pvs
Bro i have some doubts on coalesce
pvs
What's is coalesce?
drunktimelord
What's is coalesce?
it's the process of precipitating a colloial solution into a solid mass, using chemical, mechanical or electrochemical methods
drunktimelord
might be wrong my chemistry has gotten weak
Yar
#djangooscar #oscar Hello. I'm trying to override ProductForm, but I can't. assert False`can raise exception if placed in `shop.apps.dashboard.catalogue.models, but if I place assert False in shop.apps.dashboard.catalogue.form nothing happens.
Yar
That means my app hooked up from INSTALLED_APPS, but for something reason, get_class doesn't want load classess from .forms, but can from .models. Solving this problem more than 2 hours, tired and annoyed af.
Anonymous
https://stackoverflow.com/questions/59594790/how-do-i-render-all-the-objects-of-a-child-model-belonging-to-a-particular-objec?noredirect=1#comment105354589_59594790
Anonymous
I have explained my query there...
Anonymous
"How do I render all the objects of a child model belonging to a particular object of the parent model on click?"
Anonymous
Please help me: How I can upload my django website on hosting
Doragonsureiyā
Please help me: How I can upload my django website on hosting
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Mirco
Does anyone know a solution for this?
The firs answer makes sense by using Ajax or fetch API to call the view that just call the object set of a parent model
Sander
What is the "best" way of moving a Django application to production. I'm now running it using Gunicorn + Nginx but from time to time it's really slow. Aside from that I read in different articles that the usages of Nginx is not needed
Anonymous
The firs answer makes sense by using Ajax or fetch API to call the view that just call the object set of a parent model
No other way then? Such that I can get that data in the <dialog> itself without any dedicated view?
Mirco
No other way then? Such that I can get that data in the <dialog> itself without any dedicated view?
How you wanna work with data without a view that answers to your callback raised by the button ?
Mirco
No other way then? Such that I can get that data in the <dialog> itself without any dedicated view?
One view is required, then you can put the children into the context and play with css classes to show/hide
Anonymous
I just want to do it in the view which renders lists
Mirco
Yes, without a dedicated view for the tasks.
One view is required to query data from db
Mirco
I just want to do it in the view which renders lists
If you read better and understand what I'm trying to tell u, I'm saying you can use the same view
Mirco
Put the children into the context and then play with css classes to show or hide
Anonymous
Oh yeah, thought of that at first...
Anonymous
But won't it consume too much of memory?
Mirco
But won't it consume too much of memory?
If you have lots of data, use the pagination
Anonymous
Will look into it 👍
Anonymous
Thanks
Mirco
!yw
Doragonsureiyā
You're welcome! 😊
Rupesh
👋 I m new join in this group
Rupesh
Actually, I m learning to Django framework
Mirco
😁😁
Rupesh
But, so many doubts about Django I don't know, how to searching my doubts to solution in Google. So, if their any one clarify to slove the program
Rupesh
Recently, I develope a cms site
Rupesh
But, insert and retrieve successfully completed.
Rupesh
But, index page , so many returns values.
Aswath
Please help me use mapbox with django
Gio
Please help me use mapbox with django
https://www.fullstackpython.com/blog/maps-django-web-applications-projects-mapbox.html
Aswath
https://www.fullstackpython.com/blog/maps-django-web-applications-projects-mapbox.html
I need to get location as input from the users , store it in the database and filter nearby users for a particular user and display it on the map... Im pretty overwhelmed... May i know how to do that please...
Aswath
Also getting input from the user is easy... But letting him search for a location seems pretty tough in mapbox
Anonymous
How to make a email send form in django
Martín
hello, I have a Django project made with Cookiecutter-django I'm trying now to override some behaviour in the signup process and here https://django-allauth.readthedocs.io/en/latest/configuration.html it says that if I set a value for one of my classes I can but I set it in settings/base.py to "corelli.django_sftpbrowser.adapters.adapter.DjangoSftpAdapter" and it says that the module cannot be found Exception Value: No module named 'corelli.django_sftpbrowser'
Martín
could it be that I need to make imports in an specifical order?
Martín
or maybe rename the django app and package without the '_'?
Martín
oh, wait
Martín
I think I solved it, dumbest error ever
Martín
sorry
Anonymous
I am trying to redirect to another page....please help me
Martín
How?
Martín
Like from the view?
Anonymous
Yes
Martín
Or loading the page, wait a few seconds and the n redirect
Ram
Guys, any help ? https://stackoverflow.com/q/57314461/3571853
Nicolas
Hey guys, i have this code
Nicolas
def clean_autor(self): autor = self.cleaned_data["autor"] autor_exist = User.objects.filter(username=autor).exists() if not autor_exist: raise forms.ValidationError('Sorry, the autor does not exist') return autor
Nicolas
and this problem
Nicolas
Cannot assign "'nrestrepo05'": "Post.autor" must be a "User" instance.
Nicolas
someone of you know what i can do?
#
someone of you know what i can do?
i think if u have foreignkey field look at it and make clear ur error
Nicolas
i think if u have foreignkey field look at it and make clear ur error
I don't know how return the pk of the autor
#
I don't know how return the pk of the autor
define what is "autor" ?
Nicolas
define what is "autor" ?
class Post(models.Model): autor = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=50) content = models.TextField() resume = models.CharField(max_length=300) image = models.ImageField(upload_to='images/posts') category = models.ForeignKey(Category, on_delete=models.DO_NOTHING) created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True)
Nicolas
#
This is the post model
so why u need clean data for author u can have other option to handle what u want to handle
#
anyway clean_autor method is Post method or?
Nicolas
anyway clean_autor method is Post method or?
Nop, is a validation of the form