Raj
github.com/silvareal
I will see thanks👍
{°_°}
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
Mirco
I want to see use custome user model And also I have multiple user types
For custom user model you can extend AbstractUser For multiple type you can use a field to know what kind of user is that
Kaio
That's what I'm doing right know. I've created a field called "role"..
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
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
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
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
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.
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
Anonymous
Is the database located on another server
No it is in same server but i didnt make it
cj
No it is in same server but i didnt make it
you need a user (and password) with access to that DB
Ghorz
No it is in same server but i didnt make it
Online or on your local machine
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
and, if you didn't made that DB, you'll need to match your models with the tables (or viceversa) you're gonna use
Yes i know it but i have no idea about how can i most connect to it and get data from it data base
Anonymous
I need a api or se thing else ?
Anonymous
If online, the database server running
So means i most just edit data base?
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?
Anonymous
And what you think about 1 point in my question
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
Ghorz
Yes from the settings.py
Ghorz
Comment out sqlite configuration first
Ghorz
Start your database in your PC
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
cj
Help me pls
did you call 911?
Mamdouh
Help me pls
how i can help?
Rajab
ive error :ValueError at /upload/ Cannot assign "140": "Db.train_id" must be a "Train" instance.
Rajab
why cant i send a screen??
Mirco
why cant i send a screen??
Because it's forbidden Use a sharing image service or use pastebin/dpaste et similar
Rajab
https://ibb.co/syYRTZG
Mirco help me pls
Mirco
Show your view code
Armando
help me
Armando
how set template login default django 2.1
Rajab
Mirco
Idid it! Thx
👍👍👍
tk
Which website is good to learn Python
Djifferson
Codecademy