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
I am trying lot of times with the help of youtube videos
Have you learned html, CSS, js, Mysql and python up to intermediate level, else back to base.
Ghorz
How to pass context variables, uses in base.html to a child template, where {% extends 'base.html' %}
The context variable must be available In the child else, write a context processor
Ghorz
Context processor will make the variable available on all pages in your project
Alex
Hey there guys, I have a question how can I create dockerfile dev and prod for a django project? Docker newbie here
I guess this chat is not about Docker. There’s couple of great Docker tutorials on Udemy, check them out
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
Kratøs
Whenever we have to start a new project... We need create a new virtual environment right?
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
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?
Asifali
Check django countries package
I want this to a registration form
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
Suggest me a better optional for Channels-Django I wanna build a web-chat app.
there's anything better than django-channels by now
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
https://www.codepile.net/pile/PyK4KAQj
This in my error code and everything you possibly need tell me if u need sth else
cj
Help me then to make it work please.
read this: https://channels.readthedocs.io/en/latest/ there is everything you need to know there, well explained, even with examples
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
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
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.
cj
https://www.codepile.net/pile/PyK4KAQj
ASGI_APPLICATION has a bad value
cj
Then u have to
no I don't have to 🤷🏻‍♂️
cj
ASGI_APPLICATION has a bad value
check what you put on ASGI_APPLICATION
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
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
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"
Yash
Could you share the project tree ?
How you want me to show that in that link or in ur dm or sth???
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