Ghazwan
lel, but its much faster than functional based tho
I kind agree, but almost all my errors were because of missing self
Ghazwan
funfunfunction from now on :)
inchidi
this is nice list with good explanation & description
inchidi
My essential django package list (Score: 101+) Link: http://j.mp/2yc6bb1
Anonymous
Hi
Anonymous
I have a question about flask
Anonymous
ask
Lapanit ☃️
Django Bot
>> Blogs - Simple or fancy UPSERT in PostgreSQL with Django
Anonymous
Sorry,sent by mistake!
Django Bot
>> Blogs - Kindle and ePub Now Available for Two Scoops of Django 1.11!
Ghazwan
Sweet
Django Bot
>> Blogs - Automating Dokku Setup with AWS Managed Services - A Complete Beginner's Guide to Django - Part 7
Django Bot
>> Blogs - Mercurial Mirror For Django 2.0 Branch - Mailchimp Integration
JZA
hi if I want to edit a table on admin, where should I go? I want to remove some columns and maybe add one instead.
Ghazwan
Just delete the member's (column) line in your class and migrate
Ghazwan
In case that column is a primary key for another model class member, you must give an on_delete attribute for that foreign key.
JZA
yeah but this is coming from the admin default
JZA
so how do I make an object to 'not list' a default column?
Ghazwan
Why do u want to delete it ?
Ghazwan
Explain pls
Ghazwan
What are you trying to do ?
SR
/stat@combot
Combot
combot.org/chat/-1001146340312
Django Bot
>> Jobs - Python Developer - Django
Django Bot
>> Blogs - How to Implement Django's Built In Password Management
Anonymous
Hello guys. I'm trying to install jinja2 on a hosted space by hostgator. Django and python2 are already installed, yet, when I try to install jinja2 it says system file is ready only.. How can i change it to write?
Ghazwan
Django is dropping support for py2 in the very next version, actually it django 2.0 is beta now, so you may consider switching to py3.
Ghazwan
https://docs.python.org/3/howto/pyporting.html official guide for porting your projects from Py2 to Py3.
Yashwant
If I've used birth_date = models.DateField how should the date entry be?
Ghazwan
max_length ? why ?
Yashwant
Uhh yeah was gonna remove that
Yashwant
If I've used birth_date = models.DateField how should the date entry be?
If a user want's to enter a date, how should they do it?
Yashwant
a = User(first_name="Random", last_name="Person", birth_date=1897-12-17, age=20, email=random@xyz.com, number=1234567890, profession="Job xyz", hobbies="Working", location="Earth")
Yashwant
This didn't work out :/
Beverly
I'm new with python and other things, but I would suggest, if you want them to enter a date, maybe use int(input())
Ghazwan
Uhh yeah was gonna remove that
what do u wanna do with it ? u r almost done with if just go to ur detailview and declare the model
Anonymous
try sudo pip install jinja2
Isn't it dangerous?
Anonymous
why you are using python2? you better move on to py3 asap tho
Don't care about the version. I'm trying to get jinja2 work only
Yashwant
what do u wanna do with it ? u r almost done with if just go to ur detailview and declare the model
Right now my database is empty. I'm trying to add an entry in it, but...
Yashwant
Trying to add and see if it takes any values or not
Ghazwan
from django.views.generic import CreateView classs EntryCreateView(CreateView): model = ur_model_name fields = ['field1', 'field2']
Ghazwan
in ur views
Anonymous
Yeah that might be an issue with your permissions, also you are obviously not using virtual env which is bad later.
I'm not using it. Juat a terminal and logged in to the server. Should I use it?
Anonymous
Would you send me a video for it please. Cuz I could not find it in Google. I always use the wrong key words🌚
Ghazwan
that's it, no need to video it is three commands
Anonymous
You are my hero m8
Ghazwan
Ok
also in your model create get_absolute_url function
inchidi
Isn't it dangerous?
yeah its not proper way, use virtual environment
Anonymous
David
Hello, I'm just starting to deploy in Django, but maybe I have a newbie question: If I have already modeled a database (with its primary, foreign, unique keys; master, association and parametric tables, and all its relative constraints), will Django's ORM create a fair match with "python manage.py inspectdb"? Or is it a best practice to start from zero the model.py contents by hand?
Anonymous
What are you saying buddy?
David
Well, I have built already a Database from scratch, but I would like to know if "python manage.py inspectdb" integrates smoothly that database, with the new django's app. Right now, I'm just following the official django's tutorial, but it emerged that question to my brain somehow 😆
David
For example, I remember yii2 having troubles with the associative tables from a database...
Anonymous
I still can't understand what are you trying to say
Anonymous
Are you saying that will be tables be created?
David
Nope
Ghazwan
Nope
You missed a huge part of Django.
Ghazwan
Better use Flask if that is your approach.
David
How did you get to the deployment process if you are newbie ?
Well, maybe its not the right term... maybe programming as hobby? some like that
Ghazwan
Well, maybe its not the right term... maybe programming as hobby? some like that
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django
Yashwant
a = new User(first_name="Random", last_name="Person", birth_date=1897-12-17, age=20, email="random@xyz.com", number=1234567890, profession="Job xyz", hobbies="Working", location="Earth")
Yashwant
Guys, why do I get a unexpected indent error?
Ghazwan
age=20, ?
Anonymous
Wait a minute
Anonymous
new!!
Anonymous
Is that a thing in python?