Anonymous
How do you code your django projects
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 ?
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
Rohan
I was thinking there are easy ways😊
What comes easy is never worth it.
Anonymous
And ask where you're getting stuck
I am trying to use heroku It got a long process
Anonymous
Definitely
So, if i make changes to the site, i will undergo the same process
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
This wasn't?
yeah currently this is private group
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
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?
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
ʚɞÇherry Łoveʚɞ
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
i dont know any relating things beetween open project in Pycharm and deploy on server.
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
i dont know any relating things beetween open project in Pycharm and deploy on server.
i just realize the "So I can't deploy it on the server" part
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
Anonymous
Which ide has django support/plugin
Anonymous
Pycharm
Django Bot
>> Blogs - python django Automated Testing
Anonymous
Pycharm
Community edition?
Anonymous
Any free ide supporting django
Anonymous
What do you mean by support?
Dambe
Any free ide supporting django
Maybe he is talking about django-template autocomplete 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
Good Morning. What is the procedure to get only date and month in django? Note: No model
https://docs.djangoproject.com/en/dev/ref/models/querysets/#month
Jimmies San
the docs is your best friends :)
Jimmies San
Good Morning. What is the procedure to get only date and month in django? Note: No model
ops "no model" sorry =) but what you mean no model? on the view?
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
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
i'm really sorry but i don't understand. maybe other can help you.
I have a model with a DateField. I want to store in the database just the month and day. I do not want to save the year. Is there any way format the date inserted with just the month and day or i can not do it with DateField?
Isaías
ok?
Isaías
ok, sorry but that "no model" confused me and i'm not english.
I do not speak english either. I asked for help to explain it better.
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