Blaze
Mirco
Raj
{°_°}
I want to see use custome user model
And also I have multiple user types
Blaze
https://github.com/silvareal/GGS-portal take a look at my project model, I implemented multiple user types
Kaio
That's what I'm doing right know. I've created a field called "role"..
Mirco
Kaio
Victor has the best blog on Django ever!!
Kaio
In case you guys missed.. he started an youtube channel as well https://www.youtube.com/VitorFreitas
Kaio
really good content
Mirco
Yup, he covers so many contents
George
Kaio
hahaha
Kaio
we may have the same origins but I didn't meet him
{°_°}
ya but the new fields from Customuser are not showing up on admin
Mirco
{°_°}
Mirco
Pastebin, dpaste, GitHub etc.
Ghorz
Hello, I hit a block while working with pattern.web in django
the code works well in Terminal but doesnt work in Django
below is the paste
https://dpaste.de/fYXa
and the error
https://dpaste.de/NAkL
Ghorz
The twitter.search function does not work in Django but works fine in Terminal cant find out why
Rodri
Hi, sorry for My english, it’s possibile render the context into a docx template ? Actually I render in html and convert in doc, but I have problems with images
Luis
Luis
I had a similar issue exporting to PDF
Luis
And solved these way
Luis
src="data:image/png;base64, foobarbase64encoded"
Scrim
hello all... did someone know how can i create dynamicgraphs with dynamics form filters search ?
Scrim
like a ds graph to compare indicators
Anonymous
For those who know JS and Django, urls like this "search /? Src = ukw & q = react & p = 2 & instructional_level = intermediate & sort = highest-rated" are generated with JS, right? I'm still learning JS, but with Django I do not know how to generate those urls, especially when I need to link to paging.
Scrim
have highcharts
Mirco
Ghorz
Anonymous
Django already has a Paginator 😁
And does the pager get all the get parameters and generate a link automatically? because I did not see this in any documentation. The maximum you can do is to add a link with "page = 1" or use a bunch of conditionals to see if there is any parameter in the request object and from that generate a url with all of them.
Mirco
Anonymous
Hu guys i hope you will be good
I need ypur help
I have a login and registeratiom app i most connect it to a external data base
I have two point that didnt understanding it by google search
1/can i use django.contrib.authenticate?
Or most creat a authehticate def in my view?
2/ how can i make connection to external data base(in fact i don't know it tasks)
Thak you for reading and you answer
Ghorz
Ghorz
cj
and, if you didn't made that DB, you'll need to match your models with the tables (or viceversa) you're gonna use
Ghorz
If online, the database server running
Ghorz
The database config is in settings.oy
Ghorz
.py
Anonymous
Anonymous
I need a api or se thing else ?
Anonymous
Ghorz
Ghorz
Yes
Ghorz
I need a api or se thing else ?
Check the link below to see how to configure database
https://github.com/mymi14s/Django-Password_management-System/blob/master/src/password_manager/settings.py
Anonymous
Yes
Thank you but there is a issue i most ask it
It data base give service to a mobile app this is no problem for my web app?
Ghorz
Anonymous
Ghorz
Anonymous
And what you think about 1 point in my question
Ghorz
Ghorz
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'password_manager',
'HOST': '127.0.0.1',
'PORT': '3306',
'USER': 'ghorz',
'PASSWORD': 'computer',
'OPTIONS': {
'autocommit': True,
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
},
}
}
Ghorz
This is sample mysql configuration
Anonymous
Ghorz
Yes from the settings.py
Ghorz
Comment out sqlite configuration first
Ghorz
Start your database in your PC
Anonymous
Kaio
Do you guys use upload_to in your models to organize media files? Like avatar, cover_image, etc?
inchidi
yes
{°_°}
By the way I couldn't find doc on image hw can I upload profile picture
Rajab
Help me pls
Rajab
ive error :ValueError at /upload/
Cannot assign "140": "Db.train_id" must be a "Train" instance.
Rajab
why cant i send a screen??
Rajab
Rajab
Mirco
Show your view code
Armando
help me
Armando
how set template login default django 2.1
Rajab
Mirco
tk
Which website is good to learn Python
Djifferson
Codecademy