Dcruz
New error coming
Dcruz
TypeError at /addclientes/ save() missing 1 required positional argument: 'self'
Dcruz
its short
Mirco
It looks like you have written a bit of not useful code You can use generic CreateView to get your goal
inchidi
but it depends tho, which save() missing self. could be models.Model.save()
Mirco
he s using FBV
Yeah yeah, it was a personal suggest 😂 With generic CBVs he could save a bit of code ( it's obvious you know that better than myself ) , but it's just my idea , obviously he can use whatever he wants 😂😂
Mukhammad Ali
are there any ideas, how to aggregate in nested jsonfield ?
Kowalski
To work with MongoDB in a Django REST framework, should i use mongoengine or is there a more stable alternative?
R
To work with MongoDB in a Django REST framework, should i use mongoengine or is there a more stable alternative?
Have not personally used it, but take a look at djongo, it allows to keep using django orm
R
Having doubts on which third party libraries to pick for a project, any recommendation between sorl.thumbnail, imagekit or django-versatilefield? Same applies between choosing django-compressor or django-pipeline. Any experience/recomendation is appreciated
Kowalski
Have not personally used it, but take a look at djongo, it allows to keep using django orm
just checked, it looks very impressive, almost too good to be true
Kowalski
i just changed 2 lines and now it works with mongodb
R
Yw :)
Michael
hi guys, I have a doubt in a model django. I want a field for password, but I don't understand how hide the data. Actually, I'm using password = models.CharField().
Michael
from django.db import models class Ally(models.Model): name = models.CharField('Nombre', max_length=80) phone = models.CharField('Telefono', max_length=50) email = models.EmailField("Correo", max_length=100) password = models.CharField('Clave',max_length=50)
inchidi
is this user password?
inchidi
use django User instead making your own authentication model
inchidi
if you want to customize it (by adding field for phone number) override AbstractBaseUser and add your phone field there
Michael
thanks, I will see the docs...
inchidi
btw you are 1818th member, nice number
Michael
jajajaja xD
Shaun
How many members are in now? 1819 or 1820?
Anonymous
Hello help
Anonymous
I've set my allowed host to [*]
Anonymous
Yet I'm still getting the error
Helen
Yet I'm still getting the error
https://stackoverflow.com/questions/24857158/commanderror-you-must-set-settings-allowed-hosts-if-debug-is-false if this helps
Anonymous
Got it
Corteis
Shell of django is important ??
Corteis
Or its required??
inchidi
Shell of django is important ??
you mean the python manage.py shell ? yes, since if you are not using that shell, you cant work with your models via shell
inchidi
Thanks !! For the explain!!..
addition, not only models. technically everything configured on settings.py wont be loaded also
Corteis
i am begin with django but i am dont understanding!! So that is it polls??
inchidi
i am begin with django but i am dont understanding!! So that is it polls??
in dont understand the last part of what you said 🤔
Corteis
that is, can u recommend one project for begining!
Mirco
that is, can u recommend one project for begining!
There's an example app on Django official docs
Mirco
Yes polls!!
Exactly, start with that 😁
Corteis
Exactly, start with that 😁
Its very boring!! Kkkkkk
Mirco
Its very boring!! Kkkkkk
But it helps u to initial understand concepts
Corteis
Oh good !! Thanks...
Mirco
Yw 😁
Corteis
I will try to finish kkkk
Kev
I will try to finish kkkk
it's not about finishing but applying the knowledge you have learnt
Allen
Hello, I started using django recently
Allen
I'm following the exercises on tango with django
Allen
I created a form for add_page but after putting my title and url, it doesn't save
Allen
It's meant to save and display the page created in my category template
Anonymous
Hii.. Can any one point out want went wrong in my code. After submitting request is not going to views, but it shows correct url. This is question. https://stackoverflow.com/questions/54504027/request-is-not-getting-into-views-but-its-shows-the-corret-url
Anonymous
Is anything wrong in my url ?
Anonymous
Shows nothing
Mirco
Shows nothing
I think you got the right answer on StackOverflow , you didn't terminate your empty path
Anonymous
Thank you guys
Anonymous
Such a small mistake took half an hour.
Mirco
Yw 😁 It was something related to your urlspattern because even if your form wasn't valid, you had to see Not saved
Mirco
Anyway install Django debug toolbar as well , it's very useful 😁😁
Anonymous
Yw 😁 It was something related to your urlspattern because even if your form wasn't valid, you had to see Not saved
Actually it was showing nothing. I created another view with simple HttpResponse. That's is also not working and i guess somthng is went wrong in url.
Anonymous
In setting ?
Mirco
How to do that ?
All you need
Anonymous
All you need
Thanks mahn
Mirco
Thanks mahn
😎😎
Neetu
Hi everyone
Neetu
Neetu Upadhyay here
Rammanoj
hey
Neetu
Hi
Anonymous
Hello all I'm still having problems with displaying my templates on django