Artyom
Hello guys!
Artyom
how I can to configurate django user view, so that user id is showed in browser(fronend)?
Artyom
Cause User in browser it is object with all default user model field, but without PK. But I need it.
Artyom
this is my view.py : class OwnerFilterBackend(filters.BaseFilterBackend):
def filter_queryset(self, request, queryset, view):
return queryset.filter(user_check=request.user)
class FcaSet(viewsets.ModelViewSet):
serializer_class = FcaSerializer
permission_classes = [IsAuthenticated]
filter_backends = (OwnerFilterBackend,)
queryset = Fca.objects.all()
Artyom
user_check it is ForeignKey field, related with django User default model. So if I whant to POST something, I have to POST from front user ID too, But I have only username, email etc.
Mirco
Mirco
Krishna Praneeth
Artyom
Mirco
Maz
Rohan
Call it?🤷🏻♂️
Anonymous
Hi everyone! Please help: which method is better for sending email to user? Via signals or celery?
Mirco
Anonymous
Maz
@pyflare which chat package do you recommend? A 3rd party django app
Héctor
Jadav
Hii..how can I create an object of child class and call it from parent class?is it possible?
Maz
Navruzbek
Hello ppl! i'm having trouble with deploying djangorestapi to heroku
🏳️🌈Robby [ Private Message = Spam]
Anonymous
Navruzbek
have you ever encountered this problem
Navruzbek
App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
Navruzbek
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/rest-apiiii.git'
🏳️🌈Robby [ Private Message = Spam]
Navruzbek
i added python buildpack
🏳️🌈Robby [ Private Message = Spam]
Navruzbek
thanks for useful suggestion
🏳️🌈Robby [ Private Message = Spam]
thanks for useful suggestion
https://www.google.com/search?q=App+not+compatible+with+buildpack%3A+https%3A%2F%2Fbuildpack-registry.s3.amazonaws.com%2Fbuildpacks%2Fheroku%2Fpython.tgz
Jadav
🏳️🌈Robby [ Private Message = Spam]
@navruzbek_noraliev https://devcenter.heroku.com/articles/python-runtimes#activation-1
🏳️🌈Robby [ Private Message = Spam]
Looks like you need to read the docs more.
Jadav
Kk
Jadav
Thanku
🏳️🌈Robby [ Private Message = Spam]
Thanku
not you, @navruzbek_noraliev
Navruzbek
Navruzbek
🏳️🌈Robby [ Private Message = Spam]
??
I was telling you to read the docs...your entire problem was that you didn't read the docs.
Navruzbek
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
Navruzbek
now encountered this error
Mirco
Navruzbek
it shows very strange things
Mirco
We don't have the magic ball, if u share the errors we can try to help ya
Navruzbek
at=error code=H14 desc="No web processes running" method=GET path="/" host=rest-apiiii.herokuapp.com request_id=fbb9814a-45ae-4919-877c-f86fac297ecb fwd="93.171.146.64" dyno= connect= service= status=503 bytes= protocol=https
Mirco
Navruzbek
Scaling dynos... !
▸ Couldn't find that process type (web).
🏳️🌈Robby [ Private Message = Spam]
🏳️🌈Robby [ Private Message = Spam]
@navruzbek_noraliev what does your Procfile look like?
Navruzbek
web: gunicorn tutorial.wsgi --log-file -
Navruzbek
tutorial is the name of my django project
Navruzbek
i have read the docs and configured it
Navruzbek
https://rest-apiiii.herokuapp.com/
Navruzbek
thanks for help
Anonymous
Hi guy's my djando don't have opinion manage.py , someone help me ? Please
Anonymous
The djando active and all ok
Anonymous
Anonymous
Someone ?
Anonymous
Someone ?
Hi django default comes withmanage.py
Anonymous
Is ur installation iscorrect
Anonymous
I mean project
Anonymous
i understand
Anonymous
thanks , how instalation i need make for used ? all instalation it is ok
Anonymous
sorry , i need talk ,which instalation , and not how instalation .
Anonymous
i need make , helo word
Anonymous
i have edit manage.py ?
cokicoki
no need
cokicoki
https://djangoforbeginners.com/hello-world/
cokicoki
follow this tutorial
Anonymous
Anonymous
No need to edit manage.py file
Anonymous
Pip install django
Anonymous
Then create project