Bunty chhatri wala..
Tanguy
Hello, please how can i retrieve windows username, windows pc name when a user try to connect to my django project?
Chill
https://scsrgm.herokuapp.com
Chill
https://scsrgm.herokuapp.com
This is our mini project link the website is created with motive of sharing and gaining knowledge please visit and share your experiences and knowledge so it might helpful to others thanks😊
Shubham
Hi guys, I am building small django application and facing problem with validations can someone help me out please ?
I am new to the framework
Sergey
Hey there guys, I have a question how can I create dockerfile dev and prod for a django project? Docker newbie here
Ghorz
Ghorz
Context processor will make the variable available on all pages in your project
Alex
Pratap
Ghorz
No
If you do not learn those, it will be difficult as you progress. I advise you scratch each of the above mentioned.
Pratap
Sir iam already trying with bootstrap but the backend of django will be sometimes complex
Mirco
it depends where you store the token frontend side, if you store it in localStorage, yes it's risky
Mirco
if you store it in a HTTPONLY cookie, it's safe because js cannot read it
Samuell
Kratøs
Whenever we have to start a new project... We need create a new virtual environment right?
Alex
Kratøs
And in same system if we have multiple environment (project) than we just have to switch environment na to switch project?
Jb
passing dynamic data not displayed
Asifali
How i can get state and cities based on country in django
Mirco
Mirco
I know but if you wanna use it into an API call, you need to get it into frontend
Mirco
Otherwise you won't be authorized to make that call
Tar
Design / conceptual question:
How do you divide functionality into apps?
For example:
E-commerce shop
Does the products gallery is individual app and the order process another app? Or they just part of one app?
Mirco
And you need to store locally to make the next calls
Mirco
If it's for mobile app and you use https, yup it's impossible to read the traffic because it's encrypted
Mirco
So to stale the token I need to know your credentials basically
Yash
Suggest me a better optional for Channels-Django I wanna build a web-chat app.
cj
Yash
Yash
cj
It ain't no wrking.
it works perfectly, I've made a web-chat app —even including a bot to run some commands— using django-channels, everything works perfectly and it's easy to use
Yash
Yash
Yash
I used the docs
Yash
To do my code after failing through several tutorials
cj
See my code brother.
I'm not your brother, I sent you the documentation so you can follow it step by step, don't skip anything, you'll have a basic web-chat application working perfectly in less than 1 hour 🤷🏻♂️
Yash
Yash
I didn't even named it other than doc. Its stupid but I did the same😑
cj
I did
well... delete everything you did and start again, it's not that hard, really, less than 1 hour and you will have your web-chat working
Yash
Yash
Last time I got error
Yash
Prolly at the 2nd part of the tutorial
Yash
If I stuck again at the same point
Yash
Then u have to
Yash
Help outta it
Yash
If possible.
Yash
cj
cj
you're missing something
cj
read it carefully again and again until you realize what is that
niTRO
Beginner here: I need to change db to PostgreSQL. Would deleting dB.sqlite3 and contents of migration and then changing value of ENGINE in DATABASES in settings.py suffice?
cj
cj
then yes, create a new PostgreSQL db, and changing connection values on settings.py will be enough, you'll start with an empty database
joy
What is the best way to implement user to user private chat in django website. Which can be scalable
niTRO
niTRO
I am populating my models with several CSVs, so it should not be a problem I think
cj
Yash
machine tells me that this particular file's line 31 isn't working "dev/djenv/lib/python3.8/site-packages/channels/routing.py", which says to try:
module = importlib.import_module(path) whose work is
Yash
Gets the default application, set in the ASGI_APPLICATION setting.
Yash
I showed u my settings.py in which my ASGI_APPLICATION = "songs4u.routing.application"
Mirco
Mirco
Yash
joy
Mirco
Anyone?
Django channels atm and when Django 3 will reach the LTS , you can implement it without channels because it will handle completely async views , middleware and so on
joy
Thanks
joy
Any other way? Which will be scalable further
Mirco
No other way
joy
How to use rabbitmq with django bro
Mirco
!search
Doragonsureiyā
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
joy
Like Instagram does