Mirco
No module named FB How to fix this errror
We don't have any magic ball Be sure you installed that module from pip if it's external
Cris
Anyone have a JWT authentication article on django with vue?
Vinayak
How can I send a document to mayan edms from my Django app, without saving it to backend("in media folder") I try to use ajax to send but i need to save response to Database
Vinayak
Anyone have any idea
Mirco
X
any suggestion for a guideline on deployment of a Django app on cpanel's Setup Python app?
X
just compile the name and it's ready
am trying to pull it from my github repo
Muflone
that would just create a new virtualenv, you have to add your code later
X
so what do you suggest am lost bruh
Muflone
create the virtualenv through cpanel and then install your app into it
X
oK thanks
Nurbek
Good day! Can't figure this problem out. Something messed up with my urls. Tryna generate sitemaps for my Blog Posts. Getting: No reverse match: with no arguments not found
Nurbek
here is the code: https://pastebin.com/4cBp2jVD
Nicolas
Heey, with django can I do a restaurant page with a reservation system?
Kushal
How to make API for Custom User?
Doragonsureiyā
How to make API for Custom User?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Anonymous
https://github.com/jazzband/django-hosts
My problem is about directory structute... The things about subdomain i Will set for the React app. Django Will be serve for the multiple subdomains, with only one server/instance
Anonymous
So, the back-end urls is not important
Sheshadri
My problem is about directory structute... The things about subdomain i Will set for the React app. Django Will be serve for the multiple subdomains, with only one server/instance
Sorry, if your front end is taking care of domains then all you need is just use django-rest-framework to connect to the background .. create separate apps and use drf to connect to each app to your front
Anonymous
Sorry, if your front end is taking care of domains then all you need is just use django-rest-framework to connect to the background .. create separate apps and use drf to connect to each app to your front
Yeah... The question is only about organize the project dir. For example, for "blog." domain/site, i put the blog apps inside blog dir. And i want know ir this is a good way
Anonymous
Example: blog/articles blog/comments learn/courses learn/lectures learn/comments
Anonymous
Haha sorry totally misunderstood, yeah directory structure sounds good .. blog - models(articles, comments )
Articles and comments are a Django app. I Just add init.py in blog dir to add the apps, import etc
Anonymous
So, i think that i'm going to correct way. I Will go sleep now
Anonymous
Sorry for bad english
Anonymous
XD
Sheshadri
Articles and comments are a Django app. I Just add init.py in blog dir to add the apps, import etc
Why separate apps, why not one single "blog" app and multiple models ?
Kushal
pastebin.com/JUKJm9yK
Kushal
How to make API for model?
Sheshadri
How to make API for model?
Django-rest-framework
Kushal
Django-rest-framework
I worked in rest framework
Kushal
But problem is that i made custom user like waiter and chef..now i should made API for login
Kushal
I uses admin email and password
M3FoOoS
Hi all how can i get the column name(verbose_name) in template i use django 3
Anonymous
Can anyone help me
Add static files
Sheshadri
But problem is that i made custom user like waiter and chef..now i should made API for login
https://github.com/sunscrapers/djoser use this for rest authentication like login, logout, password reset etc
Sheshadri
It will work for any custom user, and what you do after login is left to you
Eric
Hi all, DRF question: I have several apps with views that have standard list actions. I want to create a common "export" action that generates a PDF, how can I share one custom export action used by multiple viewsets. A mixin?
avinash
class New(models.Model): heading = models.TextField(max_length=200) t=heading
avinash
do anyoine know how to take text value from a model field and pass it to another variable?
avinash
in models.py?
avinash
actually i need a field
avinash
how to extract that text value from heading textfield
avinash
thats the issue
avinash
it says TypeError: 'TextField' object is not iterable
Sheshadri
Lot of options .. 1. override save method in models and update the your field 2. Use signals post save and update the value to your field 3. Use def Post or def GET in your submit class or function and update the new field
avinash
just get the text from that model field
avinash
something that works like heading.text or text(heading)?
Shihasz
You dont have forms file?
avinash
i had to make naother model field that contain the same entry as the heading
avinash
so ill have to enter it twice?
Shihasz
so ill have to enter it twice?
Yes in models.py. But u can use single value in views
avinash
okey.. ill try that
avinash
okey man.. let me try that first
Eric
rest-framework-latex
I already have an existing PDF creation function. I'm looking for a clean way to have a custom Viewset action that is shared across many of my views
Sheshadri
I already have an existing PDF creation function. I'm looking for a clean way to have a custom Viewset action that is shared across many of my views
You can always create custom renderers .. https://www.django-rest-framework.org/api-guide/renderers/#custom-renderers
SG
How to solve manifest.json not found in django react project ?
Pritam
Do we need to use different commands for django used in pip and anaconda, please give me a brief information, I'm a beginner.
Pritam
??
Pritam
Cuz when I'm making changes in models.py its not running on pip but running on anaconda
Anonymous
How i host my django static on netlify
Anonymous
Hey anyone pls tell Im a beginner in Django
Anonymous
Framework
Sari
hai, help me ... when I made an update on django, it failed during the POST process. this is the error statement
Sari
https://pastebin.com/yn671xqZ
Sari
MultiValueDictKeyError at /admindaya/update/1 "'pekerjaans-0-id'"
Sheshadri
change if id: to if laporan_id: