Anonymous
How do you code your django projects
Charly
Anonymous
Please explain...
I am trying to deploy my project online
Anonymous
Do it on the group chat so many others can learn
Anonymous
Please... Thank You
Rohan
What platform are you using to deploy ?
Anonymous
Rohan
Uhmmm, you can really google how to deploy django projects on various platforms
Rohan
And ask where you're getting stuck
Rohan
Otherwise, you're just asking for us to spoonfeed you TBH
Anonymous
Rohan
Anonymous
Definitely
So, if i make changes to the site, i will undergo the same process
Rohan
Anonymous
Rohan
You just push changes and you can see changes effective immediately
Anonymous
Hmmmm...
So, only the setup is difficult
Django Bot
>> Links
- django-ldapdb/django-ldapdb: django-ldapdb, an LDAP database backend for Dj
inchidi
announcement: i will change this group to public group soon, thank you.
inchidi
Anonymous
Anonymous
Oh
inchidi
public group as in telegram public group with username
inchidi
we are using @django username now, you can use t.me/django to invite your friend to the group. thank you
Django Bot
>> Links
- (5) As a Web developer coming from a Python/Django background, should I lea
Anonymous
Anonymous
Good Morning
Pepeluqui
I am trying to import an existing django project to pycharm but I cannot do it. Any ideas about the easy way to do it?
inchidi
Pepeluqui
Sorry for my bad description. I can open the project but not with the django features. So I can't deploy it on the server
inchidi
ʚɞÇherry Łoveʚɞ
Rohan
You can just do runserver
Rohan
And install all requirements
Rohan
It really doesn't matter if it's being detected as a django project on IDE when it comes to deployment, given the structure is correct.
Django Bot
>> Links
- 7 Vue.js Backends Compared
inchidi
Pepeluqui
Sorry I am new in Django. I have the pycharm licensed. And I was trying to import a django project from github but pycharm doesn't recognize its characteristics
ʚɞÇherry Łoveʚɞ
Anonymous
Which ide has django support/plugin
Anonymous
Pycharm
inchidi
Django Bot
>> Blogs
- python django Automated Testing
Anonymous
Pycharm
Community edition?
inchidi
Anonymous
Any free ide supporting django
Anonymous
What do you mean by support?
Anonymous
Yes
Jimmies San
Any free ide supporting django
usually you have settings/components/plugins/extensions to do something like that. it depends on ide you're using.
Jimmies San
have you using an ide? if not: try vscode [it's free and easy to learn]. there are a lot of extensions for it [python, django, django template and more].
here vscode
https://code.visualstudio.com/
here django template extension
https://marketplace.visualstudio.com/items?itemName=bibhasdn.django-html
Isaías
Good Morning. What is the procedure to get only date and month in django? Note: No model
Isaías
event_date = DateField(input_formats=["%d %b "]) ok?
Jimmies San
Jimmies San
the docs is your best friends :)
Jimmies San
Isaías
Ok?
Isaías
Ex: event_date = DateField(input_formats=["%d %b "])
Isaías
holiday = DateField(input_formats=["%d %b "])
Isaías
using model
Anonymous
Why does django source code use underscores for model instance argument. Take for example
date = models.DateTimeField(_(timezone.now)
I saw something similar like this in my python site packages where django source code lives
Jimmies San
using model
i'm really sorry but i don't understand. maybe other can help you.
Jimmies San
Jimmies San
you do something like from django.utils.translation import ugettext_lazy as _
to import the component
Jimmies San
then you create with django command the locale files, then translate, then compile it
more info here https://docs.djangoproject.com/en/2.0/topics/i18n/
Anonymous
Thanks @JimmySan
Anonymous
I will check it out
Isaías
ok?
Jimmies San
Jimmies San
as you can on the docs the datefield is an instance of datetime.date
https://docs.djangoproject.com/en/2.0/ref/models/fields/#datefield
Isaías
Ex: 10/10/2018 I want to save just 10/10
Isaías
holiday
Jimmies San
no i't sbetter if you use datetime and create logic after if you need just the month. in this way the query performed are better and avoid over engineering
Jimmies San
so you use datetime to manipulate the data, or if you need it you create a field ad hoc. imho
btw: you can manipulate a datetime object as you like. you can do smth like datetime.date.today().day or datetime.date.today().month or format it with strftime and so on
Django Bot
>> Links
- Django Best Practices - William S. Vincent