Krishna Praneeth
Share urls.py
https://pastebin.com/cX9uvPid
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.
Krishna Praneeth
It depends also how ya call that url
then how should i use so not to again occur such conditions
Artyom
how I can do it?
Oh! I undersrand ! Thanks!
Rohan
Call it?🤷🏻‍♂️
Anonymous
Hi everyone! Please help: which method is better for sending email to user? Via signals or celery?
Maz
@pyflare which chat package do you recommend? A 3rd party django app
Mirco
@pyflare which chat package do you recommend? A 3rd party django app
Never used yet, I heard about django-chat but if u don't find anything stable , use Django channels 2 to build it
Jadav
Hii..how can I create an object of child class and call it from parent class?is it possible?
🏳️‍🌈Robby [ Private Message = Spam]
Hii..how can I create an object of child class and call it from parent class?is it possible?
Children know about parents, but parents do not know about children. You should review the docs
Navruzbek
Hello ppl! i'm having trouble with deploying djangorestapi to heroku
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'
Navruzbek
i added python buildpack
🏳️‍🌈Robby [ Private Message = Spam]
i added python buildpack
Google your errors.
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
🏳️‍🌈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
🏳️‍🌈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
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
Navruzbek
Scaling dynos... ! ▸ Couldn't find that process type (web).
Mirco
Scaling dynos... ! ▸ Couldn't find that process type (web).
So I think you have some problem on creating your dyno Check better on docs and try again the entire process
🏳️‍🌈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
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
cokicoki
thanks , how instalation i need make for used ? all instalation it is ok
use grammarly to fix your grammar first, i dont understand your question
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
No need to edit manage.py file
Anonymous
Pip install django
Anonymous
Then create project