These are chat archives for django/django

25th
Apr 2017
Roel
@roelzkie15
Apr 25 2017 04:30 UTC
@Nifled maybe @Darkless012 is right i have problem somewhere in my app
Note that this can’t work with signed cookie sessions - since only HTTP responses can set cookies, it needs a backend it can write to to separately store state.
What's another option?
BHARATHI RAJA
@devrajvlpt
Apr 25 2017 09:56 UTC
@backbenchersco how many openings , can i get to apply remote
Daniel Nordberg
@dnordberg
Apr 25 2017 12:58 UTC
Hey, how can I add the app name in the user permissions since I have multiple apps with the same models.
blob
Sorry, how can I "add the app name"
.. This is in regards to the admin user permissions
Daniel Nordberg
@dnordberg
Apr 25 2017 14:22 UTC
Neve mind, was using xadmin which overrides this
MohamedShawky
@MohamedShawky
Apr 25 2017 15:41 UTC
how to create application like facebook
any help
@dnordberg
Kaushal Kumar
@kaushal087
Apr 25 2017 18:39 UTC

@MBijman Sorry for replying late. Was too busy.
when i do ls -l
in /etc/systemd/system
one row is

. . .
-rw-r--r-- 1 root root  326 Apr 21 00:01 gunicorn.service
. . .

I have written detailed my problem above. I know its dangerous to run shell command from django but I need to do this for now. Thanks

I want to run a shell command from my django application. It works fine if I run it using manage.py runserver but the command doesn't work on production(nginx + gunicorn).
os.system(command) and subprocess.check_call(command)
Both worksin development in but not in production.
MBijman
@MBijman
Apr 25 2017 21:19 UTC
@kaushal087 it's becoming to complicated for giving advice
but first check the syslog, or gunicorn logging, and make sure gunicorn logging is on.
that is all I can do without logs of the issue from this chat