Abhi
Hey guys... How do you work with django on digital ocean vps?
Abhi
Do you mount the filesystem through ssh or is there any othe preferred way?
Anonymous
They have a pretty good tutorial on it
Jimmies San
use git and then pull right branch from server
Jimmies San
and tune settings
Abhi
In that case i will use my pc for development and vps for production mode right?
Jimmies San
yes: i use a develop branch for local development + feature branch that merge to develop. the pre-production is synced to preprod/release branch, and production on master branch. so you can handle merge and things like that it's easier
Swathy
Anyone help me please.. How to store session value in django? I mean how to access user id from all other pages like edit profile, view profile etc
Cristian
Pass user data as context
Swathy
Ok thank you
Anonymous
sorry man but: or study before ask or I ban you . its obvious you have no idea what django is. is hard to help in this kind.
hey man i know django but and my code most worke turly but i cant understant why it didn work
Jimmies San
hey man i know django but and my code most worke turly but i cant understant why it didn work
yes but if you say "this is emergency i have no time for reading doc" or "what is jinja template" people can think you don't know it :)
Jimmies San
Jimmies San
the docs is the secret weapon to become a superhero \o/
Anonymous
the docs is the secret weapon to become a superhero \o/
do you have any link for loading bootstarp or css files ?
Jimmies San
do you have any link for loading bootstarp or css files ?
about static files and its organization on django: a fast-talk here reallly clear and easy https://youtu.be/eEZYDDaDeCs?t=1794
Jimmies San
or https://docs.djangoproject.com/en/2.0/howto/static-files/
Anonymous
do you see any thing that is run ???
Jimmies San
do you see any thing that is run ???
have you tune your settings file? and urls file?
Anonymous
have you tune your settings file? and urls file?
do you want i send you in p.v my codes?
Anonymous
can you see them ?
Jimmies San
do you want i send you in p.v my codes?
no, use DPASTE to share the code
Anonymous
hi guys plz check my problem https://stackoverflow.com/questions/51227198/how-can-load-css-in-django-turly i will thank you
inchidi
Yes, but it does not work
mind to elaborate?
Anonymous
mind to elaborate?
hi dear mr inchidi plz help me and check my link thank you
Jimmies San
hi guys plz check my problem https://stackoverflow.com/questions/51227198/how-can-load-css-in-django-turly i will thank you
again? O_O i tell you: check your settings man .... read the docs and confront it with yours: then tune it
Jimmies San
less time to do it than ask someone and wait
Anonymous
read the warning
so i read it dear inchidi have you any code in github that make web site with django ???
Anonymous
maybe i see a code can understand ture way for defind static files
Anonymous
here
thanks alot
inchidi
thanks alot
have you try click on the static files link when viewing source of the rendered page?
inchidi
yes it is right :/
its opening the static files?
inchidi
ctrl+u then click on any /static/... link
Anonymous
its opening the static files?
no but adress is ture
Anonymous
?
no didnt open it
inchidi
so have you figured out the correct settings?
Jimmies San
"please give me the working code: asap. thanks" 😂😂😂❤️
inchidi
@kmt9740 fyi you wont go far if someone give you the correct one without knowing its mean tho
inchidi
yes
Anonymous
it setting was right or not?
inchidi
read the warning
its not, and thats why i gave you this link
Anonymous
@kmt9740 fyi you wont go far if someone give you the correct one without knowing its mean tho
yes you right but Tomorrow i most give my project and i am not a site designer of django coder i am a ai coder
Anonymous
i said befor this is a emergency problem
Jimmies San
yes you right but Tomorrow i most give my project and i am not a site designer of django coder i am a ai coder
i know a product manager who made a django site [prototype] in 3 days: it's not a developer
Jimmies San
you can find him on that lightning talk video i posted before
Jimmies San
it's easy and well documented: but you have to be patient. stop, breath: read the docs :)
Anonymous
Anonymous
and i have no acsess to it
Anonymous
:))))
Jimmies San
:\
Jimmies San
sad story
inchidi
youtube is limted acssese in my location
then what you read from the link i gave?
Anonymous
:\
all of pepole are n't lucky like you
José Miguel
mind to elaborate?
I fix the error: img src="{{ usuario.imagen.url }}">
Anonymous
then what you read from the link i gave?
it was https://docs.djangoproject.com/en/dev/ref/settings/#static-root
Jimmies San
it was https://docs.djangoproject.com/en/dev/ref/settings/#static-root
it's easy: you have to set a settings.py file. yours it's a bit mess. try this: rename it to settings_test.py and create a new one copy the new one from a django default project and then tune it with media/static value and tune the main urls.py and other value like db etc etc that works from the older. don't change the order, don't move up&down things that you don't know.
inchidi
I fix the error: img src="{{ usuario.imagen.url }}">
doesnt looks like image related to authenticated user
Jimmies San
that's it ! :)
Anonymous
have nice day every one
Jimmies San
the life is hard but never give up! see ya
Django Bot
>> Links - Django ORM Cookbook — Django ORM Cookbook 2.0 documentation
Anonymous
Hi I created a customuser as the below webpage. https://wsvincent.com/django-custom-user-model-tutorial/. But after Django.contrib.auth.authenticate returns is_anonymous user. Can any one help me to solve this issue. Or anything I am doing wrong
Anonymous