Shekhar
Oğuzhan
i cant connect there
Oğuzhan
i just show loading icon up
Shekhar
download irc client
Shekhar
and registered urself there
El
I have an api that I did in DRF as I can send data from an html template
puneet
How to send firebasenotification with payload throug pyfcm??
Rohan
.
What's the question?
🇮🇳
Bh
Rohan
Anonymous
i am getting error message:
Anonymous
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
Anonymous
how to introduce my static files in django
Anonymous
that contains many folders
Anonymous
one who can help me out
Rohan
https://docs.djangoproject.com/en/2.2/howto/static-files/
Anonymous
@PulsatingQuasar this method is now working
Happy
Share your STATIC_ROOT.
Anonymous
sure
Happy
How do you set it up?
Anonymous
i have static file in my root project directory
Anonymous
STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, "static")
Anonymous
i have tries this
Happy
Is there a static directory in the project root directory?
Anonymous
yes
Anonymous
also run the command python manage.py collectstatic
Anonymous
but it is not effective
Happy
yes
How do you set DEBUG up?
Anonymous
True
Oğuzhan
i cant send message to IRC channel
Oğuzhan
of django rest framework
Anonymous
you have to run few commands to configure IRC
Anonymous
google it
Happy
from django.conf import settings print settings.STATIC_ROOT
Happy
What did the command print on terminal?
Anonymous
okaay let me check
Anonymous
getting the new error GET /static/style.css HTTP/1.1 404
Happy
Happy
getting the new error GET /static/style.css HTTP/1.1 404
Is There No error in the cmmoand: python manage.py collectstatic?
Anonymous
no
Anonymous
now it collects all my static files
Anonymous
from django.conf import settings print settings.STATIC_ROOT
when i run this commad i got a static files url
Anonymous
well let me explain
Anonymous
i have put my static files in root project directort
Anonymous
under /static/
Happy
Is the style.css file in the $(prejct_root)/static?
Anonymous
yes
Anonymous
but is not effective
Anonymous
i am useing this i my base.html: <link rel="stylesheet" type="text/css" href="{% static 'style.css' %}">
Anonymous
a file path?
yes it show me static file path
Happy
plz share it. Sorry, My english is bad.
Happy
I don't know how to say it.
Anonymous
tell me how to share it
Happy
Copy the output and Send a message to this conversation.
Happy
$python manage.py shell >from django.conf import settings. >print(settings.STATIC_ROOT)
Anonymous
yes i did man
Oğuzhan
guys why i couldnot take any response there?
Oğuzhan
https://groups.google.com/forum/?fromgroups#!topic/django-rest-framework/JNOE1oWrEFQ
Oğuzhan
i also wrote to irc
Oğuzhan
actually django allow for it. i saw their web site
Oğuzhan
on their web site
Mirco
https://groups.google.com/forum/?fromgroups#!topic/django-rest-framework/JNOE1oWrEFQ
I think you can, there are lots of courses that use official logo
Oğuzhan
but i want to use Django Rest Framework logo
Oğuzhan
i saw a few people who used it
Oğuzhan
in their course or blog
Oğuzhan
i saw but there is no such a think
Oğuzhan
i saw but there is no such a thing
Mirco
https://github.com/carltongibson Write to one of maintainers and he will told you if u can or not
Oğuzhan
thank you
Shyam
Hi, Can anyone please help me to understand how Django handle a request...what are the internal flows?
Mirco
Hi, Can anyone please help me to understand how Django handle a request...what are the internal flows?
By reading Django source code, you can understand how the flow work For example if u read the code of the base class View , you can understand how class based views work
Shyam
@pyflare... i want to know how django internally handle, for example a request first goto middleware and then what all things happen there...like that. Is source code will help to understand this internal things?