Eduardo
Eduardo
Right, I'm new with django
Remy
Well, no I don't think its possible, even with Django Admin lol
Remy
You need to write code to "add new column" so to speak
Remy
Then you also need to run migrations
Eduardo
I've heard about dynamic database, do you think that is possible with this?
Eduardo
Sure I just wanna see the way to do this
Remy
I'm not sure that dynamic database have something to do with that
Remy
Well what you need may be technically possible if you dig a lot into it, but nothing in particular that django would help you MORE than other framework
Eduardo
I realize of that, thanks in advise
S
S
Anonymous
R
R
thats the problem. no erorr code. Acts like nothing is wrong. Just doesnt call the correct function in views despite me seeing the brow2ser going to the correct address
Anonymous
R
nope, running on vps
Anonymous
nope, running on vps
have you setting the static and collect static in your project before deploying?
R
hmm… ok, i’m new at this… there IS a static folder…. but i’m not sure what you mean beyond that
R
can you explain what that is for? What needs to be in the static directory?
Anonymous
and don't forget to try go to http:///correctaddres:8000/admin
R
Inhabe css in a static directory, but its in the lower project folder, not the “root” folder. But i never ran a collectstatic command. Ill try
Remy
How do you initialize data in an empty database for testing purposes? Custom migrations? Fixture? or some manage.py custom management command?
Derrick
Hi Guys, been using Google Forms to collect data from users but now want to move from that. Anyone with a suggestion on how best I can implement a web app using Django and have it store this data on the cloud in kinda a excel format..
Anonymous
Derrick
Mohit
i am running my manage.py file by runserver,migrate& makemigrations
Mohit
but none of them is working
Mohit
no respose for sometime
Mohit
than the log show connection_timeout
Rahulraj
Sanjay
Object is not iterable
Sanjay
Please give solutions
Денис
Sanjay
We have this error in django run time file
Денис
I can’t even guess what you’re doing there
Anonymous
Object is not iterable
https://stackoverflow.com/questions/18512491/typeerror-object-is-not-iterable
Anonymous
Can someone explain me what are class based views
Andrey
very nice place to learn it http://ccbv.co.uk/
Anonymous
Ok
Mohan
Денис
I don’t know what you mean
Alisherbek
guys, are there the best book for django 2.2, I came from php(laravel, symfony). and Django kinda new for me, There are lots of books, but it would be great to have best book to start with
Anonymous
Which is the best book to learn django?
Anonymous
Anonymous
Andre
👍🏾
Andre
Same hare I am a JavaScript developer
Now that you mention that.. Even though it's offt-topic, I've been trying to learn nodejs. Do you know of any good resources to learn node?
Anonymous
Batman
Andre
ahh ok. cool. thanks.
Batman
this might be useful
Ghorz
https://www.djangoproject.com/weblog/2019/oct/01/bugfix-releases/
Ghorz
Bug fixes for 2.2.6, 2.1, 1.11
sravan
Felipe
Hey guys! What's up?
I'm having a problem with django rest framework. I've a model that has one field price and one field boolean. The user will add the price and will set the bool to true or false. If bool true the serializer must include the price value, but if bool is false the value of price shouldn't be serialized on response.
I tried to do it using serializer method fields, but it's a read only field and I need to allow the user change the price if he wants. Someone has any idea of how to solve it?
Maksim
Felipe
There's no option of method fields with writable options?
R
R
raise ImproperlyConfigured("You're using the staticfiles app "
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
Nitesh
R
ok I did this: STATIC_URL = '/registration//static/'
R
But the settings file doesnt already have STATIC_ROOT
R
oops.. I see two /
R
well the error went away, but the behavior didn’t. It still doesnt call the /login function in views despite correctaddress:8000/login being in the address bar
Day
In order to use the POST form must you use the model forms,,that you link to the models in the sub class meta,,
Day
Remy
Remy