Anonymous
Inherit models whith seperate primary key - Questions - Simple is Better Than Complex https://community.simpleisbetterthancomplex.com/t/inherit-models-whith-seperate-primary-key/1085
Anonymous
How to fetch record behalf of logged in user in django admin table?
Cheap
i have a doubt, if i creat app Blog then in installed_apps i should add Blog or BlogConfig ? if i add just Blog, it works well ( django V3) but i saw in some places using BlogConfig
R
try change 7th line on "return check_login(request)"
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
R
Чел, ты сверхразуем? Зачем ты скинул ссылку на русский stackoverflow?
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
Yes I was also thinking same it should be dashboard
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
else he have to url('login/',views.login,name='login')
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
So you want empty or login/
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
Which error show?
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
Do this from yourappname.views import login urlpatterns = [ path('login/', login) ]
Batman
was that about my problem with fixtures?
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
what??
admin.site.register(modelname) delete it makemigrations and add it again
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
It will update model edit in django admin
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
This process worked for me once
Doragonsureiyā
Django with redis any ideas about this?
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
Owolabi
Im trying to create a user using django auth and some custom fields in a form but im having issues connecting the extra field to the built in django user model
ecDesign
Hello, its posible to execute a customtemplatetag outside a block tag?
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
Hello, its posible to execute a customtemplatetag outside a block tag?
Did you tried to execute custom templates tags outside block tag? It didn't work? Did you added {% load ... %} on top?
ecDesign
you create a custom tag by example {% print_hello %} that print hello in console (simple)
ecDesign
if you put inside a block tag you can see in console "hello"
ecDesign
if you put outside a block tag in the same file... it dont do nothing
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
I don't think block tag can restrict custom tag. show the code
ecDesign
https://pastebin.com/fiQgi15u
Yusuf
What does div mean on python?
Yusuf
May we miss it on coding?
Lamepic
Hello, please i need help with this problem. After setting up my static folder and adding my css files everything works just fine, but whenever i make changes to my css file, no changes take place. Is this normal?
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
python manage.py collectstatic
SG
Need help me in django cron jobs on heroku
SG
Somebody please helpe
Tushar
hello please i need help with this problem
Tushar
i use if request.method == 'post' to save some data in db so when i click on submit no data save in db and if i remove this line so blank object create in db.
Tushar
my views.py
Tushar
please check this
Tushar
please check this
https://pastebin.com/Lrrei0fK
Weslley
hello, how i can do partial update using DRF with in a JSONFIELD? using patch or put actually overwrite all data
Anonymous
Guys, I know this is kinda off topic. I'm someone with intermediate python skill and good at flask. But hvae never worked with orms or full fledged webapps. How long would it take to pick up django?
Nonverbis
A blog whose posts are organized as TextField in the model. A webmaster should place some html there. But this is inconvenient because the webmaster needs some template tags and filters. Can this problem be solved somehow?
🤔
21 days no sleep
What an exact number
Muflone
What an exact number
It's half of the answer to life, death and everything else
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
Guys, I know this is kinda off topic. I'm someone with intermediate python skill and good at flask. But hvae never worked with orms or full fledged webapps. How long would it take to pick up django?
It depends how much you struggle. For me with tutorial on youtube and sites which I barely know basic of python took me a week. There is one channel available on youtube if you want to know dm me
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
Hey everyone I am stucked https://pastebin.com/TW9J0fxL here 'NoneType' object has no attribute 'commonname' shows this is getting data from ajax and checking that using LIKE operation name is present in list or not and return commonname and scientific name
Shyamkumar
Custom User model example please let me know
Shyamkumar
Custom User model example please let me know
i check official documentation any other with example like official doc
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
But in search I given name and from get method it should get through 'q'
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
https://pastebin.com/sXc5N2Ub
Anonymous
Hi How can i add class media in model admin Just in add or edit form, exclude view page ----------- View page is the page where the user can Just see, and all fields are read Only (permission ==read)
Anonymous
File "/home/august/Programs/Moviegram/src/mg/movies/views.py", line 87 paginator = Paginator(movies, 5) ^ IndentationError: unindent does not match any outer indentation level
Anonymous
can anybody help?
Anonymous
i don't understdant
Anonymous
Can anyone tell me, what condition I should use to get data of current user in template. In CRUD application.?
Anonymous
i have the identical fucntion in code
Anonymous
but at this time it is poped up mistake
Firdaus
File "/home/august/Programs/Moviegram/src/mg/movies/views.py", line 87 paginator = Paginator(movies, 5) ^ IndentationError: unindent does not match any outer indentation level
sometimes when copy & paste, it will messed up indentation. Fix that and you're good to go. As the error message instruct... check line 87 (sometimes the error also comes from the previous line, so check line 86 too)
saran
Heyy guys I'm having a doubt, I have created two models one is Product and other Designer, Product model contains basic details of product and price, Designer model contact designer details and commission percent.(commission is assigned by admin) When a normal user signs and go through the products, he/she get the original pricing. But when a designer signs in pricing will get change based on commission amount. How can achieve that. I can't able to write some functions inside the models, which have no internal connection (foreign key) Do i need to check individually in view.. Whether its designer.. Make a loop and alter price and save to array?? Any suggestions guys, how to solve this??
Firdaus
Are the models related (ForeignKey, ManyToMany)?
saran
Inside view!?
saran
Yes that what I want
saran
no connection needed??
saran
Okay thanks. Let me check
Anonymous
Please help me where to start django.
Anonymous
will you send documentation
Anonymous
tq
saran
Okay let me check that.. Link which u shared now. Thanks
Anonymous
ok send me book
Anonymous
ok thank you
devops
Start from django documentation it's available on its site
devops
It is best to go with
devops
I have started