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
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
Anonymous
Anonymous
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
Mirco
Anonymous
Anonymous
I just want to do it in the view which renders lists
Mirco
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?
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
Aswath
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
Mirco
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?
Nicolas
#
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
Nicolas