Cesar
Shihasz
webster
May anyone tell me how to deploy AngularJS project on github? I've tried all the things which I found after searching online. But they didn't work for me... I've deployed the backend api on heroku.
Vincent Juma
Hello everyone, I plan to make my model objects bookmarked as favourites in the views. Which online resource contains bookmarking functionality in django?Kindly
Anshul
Just found this article on Django REST Framework. check this out https://www.linkedin.com/posts/malini-shukla-2a0a83118_django-rest-framework-tutorial-feel-blessed-activity-664851187888672
Dhruva
When login successful in DRF it returns token instead I want details of the user
Dhruva
How to do
Shreehari
i want to create an api for sending emails after user is registered using django rest framework can someone link me a code reference ?
Anonymous
temen2 mau tanya kalo bikin detail item dari group menggunakan for ... in ... gimana ya...model nya mysql contoh : for group in groups for detail in details (dengan parameter id=id_group) endfor endfor
Anonymous
mohon pencerahannya😊
Anonymous
the group is english-only
sorry I got the wrong room😂..I mean..I would like to asking in Indonesia Django Forum..
D
Anyone have Complete RESTAPI Videos?
Alex
Hey guys in django Crispty how to set a default value selected, I have a field which is a foreign key and when I render it to html it show some like many dashes as default value, how to place a custom text instead of it, Cheers
Pratik
attr param
Pratik
Set value=your choice
Alex
Set value=your choice
Actually I have no choice cause it is a foreing key and it is a modelForm
Nitish
what is serialization i haven't got a proper definition on google
Pratik
Actually I have no choice cause it is a foreing key and it is a modelForm
field_name = CharField(widget=TextInput(attrs={"value": "YOUR_VALUE"}))
Pratik
try for ChoiceField, it should work
Pratik
what is serialization i haven't got a proper definition on google
convert any object to string (in shortest term)
Gil
what is serialization i haven't got a proper definition on google
Serialization -> chop an object... maybe a request to a obj filling all data atributes/structure Inverse, deserializatino or inflating
Anonymous
I am using a html page for inputting values,not using any python forms...how could I create a custom user model...since am not using python forms I don't know how to create a one
Alex
field_name = CharField(widget=TextInput(attrs={"value": "YOUR_VALUE"}))
Didn't work, but I will place how I solved it, thank you anyway 😊👍
Alex
Hey guys in django Crispty how to set a default value selected, I have a field which is a foreign key and when I render it to html it show some like many dashes as default value, how to place a custom text instead of it, Cheers
class MyModelNameForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(MyModelNameForm, self).__init__(*args, **kwargs) self.helper = FormHelper(self) self.helper.form_show_labels = True self.fields['my-choice-field-name'].empty_label = "This is my custom selected value"
Saw
hi i would like to know if it is possible to create a mobile application using django and react native
Sheshadri
hi i would like to know if it is possible to create a mobile application using django and react native
Yes very much possible, please go django rest framework and you can easily set up a mobile app with django as it's backend
Sheshadri
Go through*
Edd
help with weasyprint, does not detect line break when it does not fit on the page https://www.dropbox.com/s/cai3nj0mi4mlgmt/2020-03-25%2009.31.26.png?dl=0
Ghorz
Pls help me
Should we write the restaurant script for you!? Let us know
Shubham
May I know how to figure this out
Shubham
http://dpaste.com/3RPCCY3
Saw
hi i would like to know if it is possible to create a mobile application using django and flutter?
M
Can we use a same app name for two different apps in two different projects?
Saw
yes, use Flutter for the client app, and Django for the API
Can you help me with pdf or link to learn it
cj
Can we use a same app name for two different apps in two different projects?
you can't use the same name for different apps in the same project, that's what you have to know
cj
Can you help me with pdf or link to learn it
yes: google.com (or duck.com, it's up to you which one to use)
M
Bro @c0x6A did u delete those other msges...I wanted to see what would happen if the problem occurs in startapp
M
😅
M
I'm not your bro
I call every senior generally like tht...how shd I call u?😶
cj
I call every senior generally like tht...how shd I call u?😶
just ask your questions directly (and in a smart way) that's all
Sai
Please help me to and suggest to implement cron job in django
Doragonsureiyā
Please help me to and suggest to implement cron job in django
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
Please help me to and suggest to implement cron job in django
use celery https://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html
Marco
hi guys
Marco
how can i transforms a relation of this type: user.presonal_data.age in a correct lookup field? i try with this : filter(user__personal_data__age__lte=20)
Marco
but this dont work
Marco
i have these models https://pastebin.com/CrY9Mt06
Marco
and i tryng to to do somethings like RankingStage.objects.filter(user__personal_data__age__lte=20)
Anonymous
Can anyone tell me how to create a class in django without importing any generic views (and mapping that in path)..Just like a traditional Python code???
Gil
Return a HttpResponse or render for example
Anonymous
Like I am not able to create any functions which is defined by me.Only things i havr to code in is get,post,put, etc. Any solutions will be appreciated Gil..Thanks
Gil
Like I am not able to create any functions which is defined by me.Only things i havr to code in is get,post,put, etc. Any solutions will be appreciated Gil..Thanks
Ok, I don't know your project, but I think that if you don't want any defined django class view generic, is that you don't need any class. Or you only need extend Generic , otherwise, maybe you need a simple function.
Anonymous
Its Spydii on github can you check?
Anonymous
i need to put all my functions in a class without importing anything from django.views
Gil
i need to put all my functions in a class without importing anything from django.views
I think your planning is wrong. DJango answer back a great tools ( classes) for universal uses from web cms. Why you don't want to use generic view?
Gil
Nevertheless, if your code is working fine, nothing is wrong
Anonymous
github.com/Spydii/Interstellar
Anonymous
Hi Gil, can you check this go in destination app or accounts
Anonymous
I have started this one when I dont know anything coded along the way..Now i wanted to convert everthing to class but seems we have to import inbuilt classes as Django Urls [ path(' ', function, name) excepts only function and not class
Anonymous
I we import generic views we generally use as_views which is a inbuilt function of Views
Anonymous
but if I need to use generic views then maybe i need to change my whole code
Anonymous
So trying to find an alternative ☹️
Gil
I have started this one when I dont know anything coded along the way..Now i wanted to convert everthing to class but seems we have to import inbuilt classes as Django Urls [ path(' ', function, name) excepts only function and not class
I think, generic view will facilite your code, https://docs.djangoproject.com/en/3.0/ref/class-based-views/base/. Try some examples. But maybe I 'm wrong, try , try , try, try :)
Anonymous
github.com/Spydii/Interstellar
Oh Appreciated I think i have to change everthing..Seems disadvantage of frameworks 😆..Anyways did you take a look?
Ali
hey guys, I want to get the value of a form that's in the admin panel, how do I do that?
Gil
Oh Appreciated I think i have to change everthing..Seems disadvantage of frameworks 😆..Anyways did you take a look?
Yes i see. For thease reason, if your code is working, and no need more complexity, is good! Otherwise, if you want to grow in apps and functionallity, i recommend django views. In short term small cost, large term you will agree
Dolma
Hi everybody... I've been writing in Django for several years... But then I was forced to switch to work with something else for the last 4 years... In the meantime python and Django evolved a lot... And I know that even if I forgot some stuff, it's being easy to remember and get back to it. Back then, I had, as everyone, a bunch of favorite Django or python books... but they are quite outdated... I'm finally being able to go back to python and Django, so I would like to read a couple of books in order to get used to it again..and also to know what's new... (Including of course testing, good practices, etc...) Which ones do you recommend?