Shyamkumar
😮
Valery
What kind of example do you need?
Shyamkumar
Shyamkumar
any that import app from other projects
Valery
two projects. in both authentication. will you write these applications from scratch?
Valery
you can simply copy the entire application folder to the project and register it in the settings
Gaurav
Can I ask for help in debugging simple( 7 lines ) python code here?
Doragonsureiyā
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With 53k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Gaurav
https://pastebin.com/N5yWtUmZ
Gaurav
i was expecting [12] only
Gaurav
its a recursive function....
Mirco
please stop send a message per word
Mirco
and for python issues go to @python channel
Harshit
Hey everyone,
I need little help
On admin page, at top right corner there are options like logout, change password etc etc.
Its not visible now.
Any solution how to make it visible
Moe (محمد)
Hey everyone,
So i have a list of employees with their info + each one has its own edit button.
How do i go about editing the specific user selected?
Moe (محمد)
I already have a form that let the owner creates the user, how do i let him edit
Anonymous
After python upgrade from 2.7 to python3. 5.2
Anonymous
Gunicorn is not working
Anonymous
Any one know?
Anonymous
Using virtual environment
Mirco
we don't have any magic ball, share the error
Anonymous
Sudo /etc/init.d/gunicorn status
Anonymous
0 instances are running, please check application
Cesar
Cesar
I will give you an answer as soon as I find why my car won't turn on... It says it's not turned on
Anonymous
Sorry
Moe (محمد)
Without a details page?
Yes without a details page, im accessing the user info in a formView(the one the creates a user) through get_contxt_data
Anonymous
Guys
We just done python upgrade. As we can see gunicorn is not working after upgrade when we see errors it shows below
Anonymous
Unicodedecodeerror:acsii code can't decide byte Oxc3 in position 20 ordinal not in range(128)
Anonymous
Worker exiting (pid:40270)
Anonymous
All these are doing on Linux centos 6.1 server
Moe (محمد)
Anonymous
Showing 502 error
Anonymous
I need some django-rest tutorials, can you help me?
Cesar
Cesar
https://jsfiddle.net/qays0fok/
Cesar
if you are planning to go with a detailview (i personally like this approach) , search on the documentations how to access a detail page from a list... its not that hard. check »url template tag«
Moe (محمد)
Let me try this out
X
Morning, have anyone ever overridden the default messages on admin actions?
Anders (izzno / gooood) 🇳🇴
Shyamkumar
Using engine django:
django.template.loaders.filesystem.Loader: /storage/emulated/0/Dj/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /data/data/com.termux/files/usr/lib/python3.8/site-packages/django/contrib/admin/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /data/data/com.termux/files/usr/lib/python3.8/site-packages/django/contrib/auth/templates/index.html (Source does not exist)
Shyamkumar
project root/
projectname
...
appname
template
appname
...
...
template
master
...
Shyamkumar
setting.py
'DIRS': [os.path.join(BASE_DIR, 'templates')],
Shyamkumar
why Django not find my template on app folder
inchidi
inchidi
try print it via shell
python manage.py shell
>> from django.conf import settings
>> print(settings.BASE_DIR)
Shyamkumar
python settings.py
/storage/emulated/0/Dj
Shyamkumar
inchidi
inchidi
and inside that folder you have index.html?
Shyamkumar
no in app folder > templates > app > index.html
Shyamkumar
├── blog
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── __init__.cpython-38.pyc
│   │   └── views.cpython-38.pyc │   ├── admin.py
│   ├── apps.py │   ├── migrations
│   │   └── __init__.py
│   ├── models.py
│   ├── templates
│   │   └── blog
│   │   └── index.html
│   ├── tests.py
│   └── views.py
├── db.sqlite3
├── manage.py
├── pass
└── test
├── __init__.py
├── __pycache__
│   ├── __init__.cpython-38.pyc
│   ├── settings.cpython-38.pyc
│   ├── urls.cpython-38.pyc
│   └── wsgi.cpython-38.pyc
├── asgi.py
├── settings.py
├── urls.py
└── wsgi.py
Shyamkumar
test is project name
blog is app name
Shyamkumar
🙏 help me
inchidi
inchidi
akshay aka max
Okay tell me Django or flask
akshay aka max
which one
akshay aka max
To start with
Cesar
Anonymous
Naruto
Anyone expert in python??
Mirco
Doragonsureiyā
Anyone expert in python??
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With 53k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Pulin
https://pastebin.com/8902pPAg
Please help me how to get all list data from above link codes
Anonymous
i think in models.py u can use def str(self):
return self.name
Anonymous
good evening everyone please I try to integrate the payment API Mtn MOMO in my django project without success. someone can advise me a tutorial. it's really urgent thank you very much for helping me
Mayank
Hello friends, how can, we perform Join Operations in Django.
With sqlite and Mysql.
I want to know this...
And how can we customise admin interface to suit my needs.
Say it Make it like an ERP where admin can add users in their company and all.
pvs
Hey guys I am using django apshceduler in production what the problem is at certain period of time database hits max connection I already googled my issue but I didn't get what I needed.
anyone facing same issue ?
Sweetie
How can I make everything UTC in django.
My server is Germany based but I hav3 set it's timezone to UTC
And set USE_TZ to False as I don't need timezones in my time.
Now I run a django app from docker and another script non docerized.
I use datetime.utcnow() for comparing datetimefields but it seems the auto_add_now is not using utc rather it uses other timezone.
How can I easily force everything to be UTC no matter what my server time is.
ᐯᑌᏞᏦᗩᑎ📈
Why we need Signals in django?
ᐯᑌᏞᏦᗩᑎ📈
what code? I mean its purpose of existance
Mirco
what code? I mean its purpose of existance
for example, one of the easiest issue is to create a UserProfile model instance when a new User will be registered into your app
with signals it's a matter of a couple of lines of code
without signals, you should implement all of this logic
Anonymous
good evening everyone please I try to integrate the payment API Mtn MOMO in my django project without success. someone can advise me a tutorial. it's really urgent thank you very much for helping me
Mihail
Hi Django guru, can anyone provide a link to docs how to integrate instagram auth with Rest Framework please, have a bit of miss understanding
Muhammad
I need help
to create generic views in dango