Remy
It's managed Kubernetes so I'm not managing K8s myself.
Oh okay. Well then maybe it's better, but still adding another lever of blackbox under your system is not worth it IMHO, UNLESS you are quite sure that your needs justify going full cluster (k8s).
Eduardo
Just create your own admin for users to add products
This admin could create new columns also?
Remy
This admin could create new columns also?
Do you mean DB columns ? (= new model fields ?)
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?
Remy
Right, I'm new with django
Take the time to do the official Django tutorial before trying anything else
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
When using signal: post_save i am trying to access a newly added manytomany relationship on the instance, but this is empty unless it had data before the update/save. How do i access updated data?
For m2m Django creates through table which is specific for that field only, you have to use m2m.connect signal to determine changes on m2m field
S
Are you sure AWS is free?
Upto some limit 😅
R
I think the problem is in your admin path
could you elaborate a little more?
Anonymous
could you elaborate a little more?
what error code that appear when you access login url?
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
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
Anonymous
hmm… ok, i’m new at this… there IS a static folder…. but i’m not sure what you mean beyond that
I think you need to set static directory in setting.py and then you can run manage.py collectstatic
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
Anonymous
can you explain what that is for? What needs to be in the static directory?
it use for storing you static files like css js and so on and after you run command manage.py collectstatic you'll have your admin template, css, and js in your static directory
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..
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
Sanjay
Object is not iterable
Sanjay
Please give solutions
Денис
Object is not iterable
Not enough info.
Sanjay
We have this error in django run time file
Денис
We have this error in django run time file
Not enough. Do you ask for help for the first time? Show the code, the stacktrace, the line number where the error raises
Денис
I can’t even guess what you’re doing there
Batman
Please give solutions
http://catb.org/~esr/faqs/smart-questions.html
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
Денис
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?
Andre
Which is the best book to learn django?
The official Django docs is really pretty good. Run through the poll app tutorial and you'll learn a lot.
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?
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
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?
Felipe
There's no option of method fields with writable options?
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.
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,,
Alisherbek
Any reasons why you don't stay into PHP (laravel/symphony)?
I did not say I left them, just learning another backend framework
Anonymous
ok I did this: STATIC_URL = '/registration//static/'
you need to add STATIC_ROOT by yourself, and what django version are you use? if you use django 2 you can goto correctaddress:8000/admin to view the login page.