Doragonsureiyā
someone who develops in angular??
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
$iductive
Im getting NoReverseMatch error how to debug
$iductive
Reverse for 'detail' with keyword arguments '{'pk':"}' not found 1 pattern tried
inchidi
Михаил
How can I make a change of model and template every 10 seconds ?
$iductive
how did your reverse() looks?
def get_absolute_url(self): return reverse('detail', {"pk":self.pk})
inchidi
def get_absolute_url(self): return reverse('detail', {"pk":self.pk})
it should be reverse('detail', kwargs={"pk":self.pk})
$iductive
Still getting error
inchidi
same error?
$iductive
Yes
inchidi
should be different if you already add kwargs tho
$iductive
kwargs was already there i just forgot to type here
inchidi
inchidi
try debug your self.pk value
Lykheang
what is pk ??
Mirco
what is pk ??
Primary key
Lykheang
def get_absolute_url(self , pk)
Lykheang
pk = id
Mirco
pk = id
they are the same, yup
Jimmies San
they are the same, yup
like twins who are separated at birth
Mirco
😂
Jimmies San
😎😎😎
Anonymous
How can we convert django template to a word file?
Anonymous
Any one knows?
Jimmies San
How can we convert django template to a word file?
open in the browser. convert html to doc.
Anonymous
Explain
Jimmies San
Explain
google.
Anonymous
My template consist of text areas too
Anonymous
So their entered data must also b shown in docx
Михаил
how i can switch objects.all and render template between 2 models ?
Михаил
in 1 view def
Михаил
and need switch this in 1 view function every 10 seconds
Ganesh R
Manage vps hosting with whm cpnel
Any one help me on this?
Jimmies San
do it again and you will be banned
Jimmies San
no spam. and at least use a link. not a wall of text
~~~
In django,when create new app we add that in installed apps What really we need to add.. Some site shows,simply add app name Some shows add appname.apps.appconfig Which is better and why😬 I am just a beginner😌
Александр
Hello everyone , I have problem: 1. Create project —django-admin startproject exampleProject 2. Create app - python manage.py testsite 3. Create testsite/templates/testsite/index.html 4. Fill exampleProject/urls.py, testsite/urls.py, testsite/views.py All steps make in PyCharm(not full edition) So the problem - that django write that hasn’t this template and for some reason show path to my python package (where python installed). Why django to look for team plates in not my templates package ?
Александр
Sorry my bad , also used static file and django couldn’t find him.
Antuane
hello everyone, i have a issue when i am deploy my app in django with apache in windows please help
Cesar
On settings.py you must change TEMPLATES = [ { ....... 'DIRS': [], # < ——— This ..... } ]
Should be something like 'DIRS': [os.path.join(BASE_DIR, 'templates')],
m0nte cr1st0
Hello. Help pls with a DRF( https://stackoverflow.com/questions/59752952
cj
Hello. Help pls with a DRF( https://stackoverflow.com/questions/59752952
there's no way you can do that on the Serializer 🤷🏻‍♂️
cj
hello everyone, i have a issue when i am deploy my app in django with apache in windows please help
you chose 2 of the worst things to deploy a django project 🤷🏻‍♂️
Toony
I know how deploy django + gunicorn + nginx but I don't know how deploy django 3 on uvicorn + gunicorn + nginx?
m0nte cr1st0
there's no way you can do that on the Serializer 🤷🏻‍♂️
It's a good solution collect an Response like this, manually?
Bhupesh
Does anyone have a better solution for this https://stackoverflow.com/questions/55763903/field-must-be-unique-on-onetoone-field-in-django-drf
Anonymous
please help write me (model.py)
Anonymous
url(r'^api/currency_add$', api.views.currency_add),
Anonymous
how can access this function at url anybody can access
Anonymous
that's for me
Anonymous
?
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list: - https://hastebin.com - https://del.dog - https://linkode.org
Anonymous
ok
Anonymous
ok
Anonymous
Will you help me ?
Anonymous
froom models.py
Anonymous
https://hastebin.com/hozowapica
Anonymous
I just have to turn in for tomorrow
Himanshi
Can anyone please tell me how to add months days in Admin dashboard of django so it look like a attendence record type?
Anonymous
I am looking for a way to host my django project online need help🥺🥺🥺
cj
you should use pagination on server side, you can set datatables.js to work with paginated data from server, it's just 2 or 3 lines more
cj
host for free
what did you find in Google?
Anonymous
what did you find in Google?
👎i need to pay the host🤒🤒
Anonymous
ok i will check it thks
cj
read datatables documentation, it's good and you'll use it the proper way
cj
👎i need to pay the host🤒🤒
lies, you didn't search well enough
$iductive
👎i need to pay the host🤒🤒
Get h GitHub student pack and get heroku hobby dynos free for 2 years
m0nte cr1st0
Hello. Can help me? https://stackoverflow.com/questions/59758229/how-can-create-serializer-with-custom-logic
Pingo
Where do you guys host django applications and websites?
Cristhian
What's the best way for learn Django ?