Anonymous
why ??
Anonymous
django not professional css
Anonymous
*forms
Anonymous
ım easy hotel web templates for one company
Raju
i want to add google login in my DRF project. which package i should try? i trying to django-oauth-toolkit. isn’t it confusing?? 😕😕
Anonymous
Please who understands how to use django-oscar to create ecommerce websites
sebastian
Hello, I am writing to you for a consultation.
I have a django application deployed in heroku that when I want to log in throws me Server error (500). but locally it works well.
I share the image of the logs
help is appreciated
Andrej
Andrej
Anonymous
Anonymous
Anonymous
Anonymous
Or write your question here
Alright, I've installed the django-oscar library, configured my settings and then tried to run update for my pip files.
PS: I started the project with django cookiecutter
sebastian
https://pastebin.com/LmxBEgDD
Anonymous
Andrej
Anonymous
https://pastebin.com/LmxBEgDD
Alright. I have seen the log.
I have a question however, is this only coming up when you try to login or it shows up on all pages?
sebastian
Anonymous
just to try to log in
Alright?
Other pages work, just the login fails. Are you depending on a third party library for the authentication, if yes, which. And if no swap your debug on so you can see what exactly is crashing
Anonymous
Then get back with a screen shot of that
Anonymous
Could be possible you forgot to add the library used for authentication in your requirements file, or more. Debugging would help point exactly what the cause is
Anonymous
From there I believe you should be able to move further
Anonymous
Let me know if there's any other way I can assist you.
Anonymous
How can I delete or install python 3 because each time I set python 3.7 as default terminal stop working unless I right click on the desktop
Anonymous
Anonymous
Anonymous
Ubuntu
Linux. Well try this code
$ sudo apt-get autoremove --purge python3.5 (to remove dependencies, settings and othersl)
Or
$ sudo apt-get autoremove python3.5
Anonymous
Ok thanks
Anonymous
Anonymous
But my Ubuntu is having python 2.7 as default
Anonymous
So I downloaded python 3.7.8
Anonymous
And when I install Django it shows install but not running
Anonymous
However try installing pip3
Anonymous
With python
Anonymous
Then create a virtualenviroment to work in
Anonymous
Anonymous
From there install with pip3 install Django I'm your activated virtualenviroment
Anonymous
Which editor is good to code with Django
Anonymous
For example pycharm community
Anonymous
Vscode which is that
Anonymous
Visual studio code
Anonymous
It's an open source code editor
Anonymous
With Ubuntu?
Anonymous
Quite lightweight and has support for python, it's templates and others
Anonymous
Yes
Anonymous
You can have installed on Ubuntu aswell
Anonymous
Google for that, should be a good way to install it's tar file and get familiar with it's installation and the rest
Anonymous
Good luck
Anonymous
👍
Anonymous
Thanks you very much
Anonymous
Prakash
I have multiple foreignkeys in a table
So, I need to write create method for that in serializer any reference pls share
Anonymous
Prakash
Yes
Prakash
On a DRF?
Anonymous
If django-rest-franework their official documentation tells you how to accomplish this
Anonymous
Let me get the link and share of so
Prakash
Ok
Anonymous
Ok
https://www.django-rest-framework.org/api-guide/serializers/#creating-new-base-classes
Anonymous
I have a question about redis queue in a particular scenario. The scenario is that data is coming up in redis queue, we have priority and language params defined in data. Now, for every data request we need to map this with our agents. Agents are limited. Some have to wait. Right. Highest priority ones would be served first. Lower priority would have to wait. Now, the question is can we manage this in the queue itself or I use redis cache to store (lang+priority as key) and sorted set as value. And a service would pick from the cache n assign to idle agent. Or can be managed by queue itself ??
Anonymous
Data need to be served on priority n language basis.
Rohan
Rohan
And yes, it can be done with redis
Abdul
Can anyone tell how to prepopulate updateview form data when updateview form is used in detailView?
Victor
"value too long for type character varying(1)" please why do I keep geting this error... I cant make migrations this started after I added the gender field. I have tried gender = models.CharField(
max_length=7, choices=GENDER_CHOICES, default=False).... editing the maxlength to 7 and see if it will work checking each field...I am using postgres
Jor
Why default false? The options are 'm' 'f' and 'o'
Victor
to handle the fields I created in the initial migration
Jor
Set null true
Jor
AND no default
Jor
Or a new option for 'none'
Victor
ok