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
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
Ghazwan
Why do u want to delete it ?
Ghazwan
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?
inchidi
inchidi
Ghazwan
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
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
Anonymous
Yashwant
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
Ghazwan
Ghazwan
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
Yashwant
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
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?
Ghazwan
David
Nope
Ghazwan
Ghazwan
Nope
You missed a huge part of Django.
Ghazwan
Better use Flask if that is your approach.
Ghazwan
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?