Leonardo
how can i see gunicorn logfile now? ahhahahahhaha
Leonardo
bind = "0.0.0.0:8000" logfile = "/home/ubuntu/logs/gunicorn.log" workers = 3
Leonardo
Jimmies San
/home/ubuntu/logs/ is empty
it has permission to write there?
Leonardo
good question
Leonardo
how can i set this permission?
Jimmies San
man
Jimmies San
how can i use linux?
Jimmies San
:\
Jimmies San
sorry i can't be your support tech guy. sorry :\
Leonardo
i don`t think this is the problem btw, i'm doing the same steps that i did before in another machine
Leonardo
thank you @JimmySan
Mirodil
Hi friends
Anonymous
Hello there fellow
Anonymous
s*
Tags
Hi guys. I haven’t tried it yet but I just want to make sure on how to do it right if ever someone here give me the right way to do this based on their experience. So if I’m going to override the save() function in my model and in the function I need to do a query for that model as well should I use self.objects.filter() or ModelName.objects.filter()? Thanks in advance.
Anonymous
Can anyone help me out to create djangorestframework
R
Their doc
Mirco
Follow the official docs, official tutorial etc.
Kev
https://www.django-rest-framework.org/
Anonymous
https://www.django-rest-framework.org/
I know this. Can you suggest me another site for REST API
Rajjix
do you mean other examples ?
Anonymous
do you mean other examples ?
Yes.. other examples.
Rajjix
Yes.. other examples.
so you’re asking if someone can give an example of drf ?
Rajjix
You don’t have access to google?
Raghul
Hello I am using pyrebase , wrapper for firebase.. I don't find docs or help how to auth using phone number
Raghul
And also verify phone number
Raghul
It's working perfectly fine for email id
Anonymous
What is decorator @jsonrpc_method?
Anonymous
What are its applications in microservice based architecture apps
Renita
Guys I need help
Renita
I'm creating a login form I'm not able to figure out why it's not working
Renita
https://dpaste.de/jmQU
Anonymous
By looking the code it look fine
Rajjix
Just remove the action from form
Anonymous
Attach the error snapshot
Renita
i tried.. im getting this message A user with that username already exists.
Renita
@Kiran no error message is displayed.. its some logical error i feel
Rajjix
Share ur login form
Renita
wait a set
Renita
second*
Renita
https://dpaste.de/tdEw
Renita
this contains login.html views.py form.py
Renita
forms*
Rajjix
i don’t think ur login form should inherit from Modelform, some messy stuff u got there
Rajjix
i see u wanna add a name to your login form, in this case i suggest inherit from the autheticationform and override it’s methods
Rajjix
Then use that form in your login view
Rajjix
from django.contrib.auth.forms import AuthenticationForm
Rajjix
and then you would need to use the built in LoginView from django
Rajjix
It’s a lot cleaner than from writing all that code
Rajjix
and ur not even using a username in ur login form, in that case ur also gonna need to write ur own backend to adjust how django matches data in your database to authenticate users and the models
Rajjix
to me this feels like ur trying to use django methods with ur methods (which are not defined) and make some Italian spaghetti
Renita
yes
Renita
lol
Renita
for the moment can u suggest the changes i need to make
Renita
with what i have written
Rajjix
well u can just accept a username and password for a login form and forget all this headache, or u need to do your own abstractbaseuser model, adjust authentication form, and authentication backend
None
I want to disable slash in url. I set up APPEND_SLASH = False and delete / in url patter like url(r'test$', test_view, name='test_view'), But there is slash anyway. What should I do?
Rajjix
Ur spaghetti is the best 🍝
Mirco
😂😂 thanks
Jimmies San
spaghetti with mandolino sauce :>
Mirco
😂😂
Rajjix
looking for an django jenkins guide and this is what i get from youtube
Rajjix
https://www.youtube.com/watch?v=IiZrvwugQw8
Mirco
The right video , I'd say 😂
Le Createur
Hi
Le Createur
i am getting this error
Le Createur
Received request requiring chunked transfer encoding, but optional support for chunked transfer encoding has not been enabled.
Le Createur
the upload come from an android app
Rajjix
i think using http2 instead of 1 might solve ur problem
Harry
Guys any reference for microservices architecture using different databases?
Anonymous
https://dpaste.de/rxM3
Rajjix
i’m not sure if it solves ur problem, just that it helps transferring data faster, u can simply add the word http2 next to the port ur listening on apache2 or nginx, listen 80 http2; i know it helps in data stream so might give it a try
Jota
Doing bdd in Django,