Ram mohan
suggest me first editor
Anonymous
suggest me first editor
My favourite- VS Code
Ram mohan
ok thank you
Anonymous
Jupyter notebook
Ram mohan
I am an android developer so i did never use any other code editor
John
suggest me first editor
Sublime is good too. . :)
Ram mohan
yes i have sublime
Anonymous
Jupyter notebook
Jupyter for Django ... Never tried... Used it for Pandas, numpy etc once.
Ram mohan
thank you all of you
Ram mohan
can anyone prefer me doccument for django
Ram mohan
I have installed
Ram mohan
actually at home I use window in office I havce linux
Anonymous
can anyone prefer me doccument for django
Django Docs are awesome... And for tutorials- Corey Schafer Django Series (youtube)
John
can anyone prefer me doccument for django
You can try watching corey shafer's youtube tutorial for django. He's so fucking good. . :)
Ram mohan
ok I also visited official document its good\
The Summer
My favourite- VS Code
Is there any extension for format Django template
Anonymous
Is there any extension for format Django template
Don't know ... If you found any , then tell me also.. :)
The Summer
Lol
Ram mohan
yes vs have many extensions I hope it has \
Anonymous
yes vs have many extensions I hope it has \
Yeah... Actually i never searched for it. :/
The Summer
I tried but not found
John
For you guys, what is the best front end partner for django?. .
Anonymous
Aemie
For you guys, what is the best front end partner for django?. .
I think even react goes hand in hand really good with django
Sultonbek Ikromov
suggest me first editor
The best editor for python is PyCharm
Sultonbek Ikromov
Sultonbek Ikromov
Anyone plz
Try to google it)) that surely helps
Ismael
Hi i would like to know if there is something like emails about new Django releases or any kind of suscription to be updated, thanks in advance
Денис
Probably a stupid question, but still: What could be the most suitable Field for storing prices in db with Django?
Денис
thinking of DecimalField, but a bit in doubt
Shubham
Which all payment gateways are supported by Django?
Shubham
Anyone plz
Make sure your form has this enctype="multipart/form-data"
Shubham
Np man
Shubham
Did it work but?
Anonymous
Shubham
I had same problem... Took half a day to figure it out 😂
Shubham
Why can't it works instead of this?
That's something related to html
Shubham
If that LOC is there than only we can upload any file/media
Aemie
How to access Django based website from different local machines? https://stackoverflow.com/q/58822626/12344619
Akbar
Why my django project will not update???
Ram
Hello U want to create comment model based on each post model Comment fields are ->text,user(who commented),date. Can you tell me what field should i pick as a foreign key
Ram
My post has a fk user
Ram
I dont what to pick as a foreign key for comment
Alex
I dont what to pick as a foreign key for comment
You make a comment model with post.id as foreign key?
Aemie
Why my django project will not update???
Are you migrating all your changes?
dj
Hi guys.. How to make limit_choices_to from multiple conditions with multiple model
Akbar
Aemie
Not. How can i migrate
Have u made changes to your models.py file?
Sweetie
Anyone have template of django saaspegasus or any SaaS project that I can clone change my payment api key and launch website without much changes. Need a quick landing page with ability to bill users one time or recurring.
Miguel
Hey guys, do u think is this a good way to create a favorite (like button) in DRF?
Miguel
# views.py class FavoritePostAPIView(APIView): permission_classes = (IsAuthenticated, ) def post(self, request, id): post = get_object_or_404(Post, id=id) user = self.request.user try: Favorite.objects.get(user=user, post=post) except Favorite.DoesNotExist: Favorite.objects.create(user=user, post=post) return Response(data={'data': "Has marcado como favorito"}, status=status.HTTP_201_CREATED) Favorite.objects.get(user=user, post=post).delete() return Response(data={'data': "Has desmarcado como favorito"}, status=status.HTTP_200_OK)
Miguel
# models.py class Favorite(TimeStampedModel): user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='favorites', on_delete=models.CASCADE) post = models.ForeignKey(Post, related_name='favorite_post', on_delete=models.CASCADE)
No man's land
Hello guys! Please someone can help me with Django package cookiecutter? I'm beginner and need help to use it.
Sweetie
don't you want some pizza and coffee too?
Here I am doing an internship that pays me $30 a month. It is a mandatory internship to be done at same price for 3 years to get my degree. It's stupid and I cannot afford to actually buy it in anyway. https://www.quora.com/How-much-is-the-salary-during-CA-articleship I am learning some python on side to get rid of the shit course I choosen and go ahead with programming. So I build some simple programs I want to sell for few $ and then learn more. I already tried cookie cutter but it's too much to even have a basic site up and my office consumes around 10 hours (10-7or8), and coaching consumes around 4 hours morning 6-10 Right now I cannot even afford 1 pizza in whole month.
Aniket
Can somebody recommend me some projects to do such that I can gain proper insight in django
professor
why am I doing wrong always return not get attribute ? https://dpaste.de/kwDD
Atul
I want to store whitelisted items for various types. There will mostly be operations to fetch a whitelist for a particular type or update it. Is this a good model design, keeping in mind that there can be more whitelists like this in the future. 1 from django.db import models 2 from django.contrib.postgres import fields as pgfields 3 from pydis_site.apps.api.models import ModelReprMixin 4 5 6 class Whitelist(ModelReprMixin, models.Model): 7 """Whitelisted items for a type.""" 8 GUILD_INVITE = "guild invite" 9 FILE_EXTENSION = "file extension" 10 CHANNEL = "channel" 11 ROLE = "role" 12 TYPE_CHOICES = ( 13 ("guild_invite", GUILD_INVITE), 14 ("file_extension", FILE_EXTENSION), 15 ("channel", CHANNEL), 16 ("role", ROLE) 17 ) 18 type = models.CharField( 19 choices=TYPE_CHOICES, 20 max_length=100, 21 help_text=( 22 "Type for which the whitelist is stored." 23 ), 24 primary_key=True 25 ) 26 whitelisted_items = pgfields.ArrayField( 27 models.CharField(max_length=200), 28 help_text=( 29 "List of items to be whitelisted." 30 ) 31 ) 32 33 def __str__(self): 34 """Returns the type of this whitelist, for display purposes.""" 35 return self.type
Rohan
How to call a REST webservice API from JS
cj
How to call a REST webservice API from JS
Abhishek. Here you have a useful link: https://duckduckgo.com/?q=How+to+call+a+REST+webservice+API+from+JS
Azra
Can a qr code contain image in Python django?
cj
Can a qr code contain image in Python django?
can you write that again using proper English, please?
Azra
Can we store an image data in qr code?
cj
Can we store an image data in qr code?
yes, you can, but that would be totally useless and insane