Anonymous
in your template u see only welcome header ?
yes, welcome and "this website is WIP hosted by shekar neo"
Mirco
yes, welcome and "this website is WIP hosted by shekar neo"
try to remove request=request and pass just request
Mirco
still same
try to change 'users' to 'registered_users' as key into context and into template's loop
Mirco
same
ok that's strange
Anonymous
one more issue, getting this while sending text to chat room https://pastebin.com/33LadPfF
Shreehari
Hey guys Have created a class based based views each definitions return different urls . How can i implement all those at one once in a template Here is my views.py https://del.dog/zaxicuyuwe.py
Anonymous
one more issue, getting this while sending text to chat room https://pastebin.com/33LadPfF
followed official channels docs, but getting "Firefox can’t establish a connection to the server at ws://127.0.0.1:8000/ws/chat/hel/." error and sent messages are not showing in log
Shreehari
Rom compilation?
trying to automate download link from ota config
Shreehari
wut? why did you define get() twice?
just a randome name , have changed it
Omair
Hi I wanted to integrate Oauth2 in my app which has DRF backend and flutter front end and I am using [social-oauth](https://github.com/RealmTeam/django-rest-framework-social-oauth2) and I cant understand how this will be implemented in the frontend and which social-oauth provided API endpoints to use to get setup a my app.
Omair
The documentation is not very beginner freindly
Omair
*friendly
Root
Hello Everyone
Root
I'm new to django.. and, i was thinking of what db is best for production.
Root
"Using PostgreSQL is the safe way to go, but sometimes you can use SQLite" - DjangoDeployment. Is it safe? Any chances to getting attacked by an SQL Injection or something..
Mirco
I'm new to django.. and, i was thinking of what db is best for production.
PostgresSQL Django provides you some tools to prevent attacks like SQL injection
Root
PostgresSQL Django provides you some tools to prevent attacks like SQL injection
oh. thanks for the answer buddy. Will it be safe for big projects?
Root
like, mostly handling user subscription or payments.
Root
sorry if the question is too childish, but hey, we never ask we'll never know. so :)
cj
"Using PostgreSQL is the safe way to go, but sometimes you can use SQLite" - DjangoDeployment. Is it safe? Any chances to getting attacked by an SQL Injection or something..
if you use the ORM, you'll be safe from SQLi, unless you make your own SQL raw queries, then it's gonna be up to you to sanitize inputs
cj
oh. thanks for the answer buddy. Will it be safe for big projects?
safety is gonna be the same for big or small projects, as long as you know what you're doing
cj
like, mostly handling user subscription or payments.
the prefered RDBMS to use with Django is PostgreSQL, so go for it 🙂
Root
the prefered RDBMS to use with Django is PostgreSQL, so go for it 🙂
Okay sir. Thanks for guiding me. I'm an absolute beginner so.
Shiva
Guys anyone here working with map on Django ?
Root
relational database. 😊 Got it.
rock
i have a doubt regarding searching a post in django using the search bar
rock
how exactly to implement
rock
with a specific template
Mirco
how exactly to implement
Make a url that accept a querystring , then make a form that send via GET the input of your text input bar , get querystring into your view and use that value to filter your queryset
Mirco
how exactly to implement
https://wsvincent.com/django-search/
rock
ok thanks I'll check that
Mirco
rock
so what if its a class base view
rock
like you are using a class for filtering the user post list
Mirco
rock
fbv?
Mirco
Function based views
rock
ok
rock
so is it good to use class base or fbv ?
Mirco
so is it good to use class base or fbv ?
It depends on use case, but study better class based views not to reinvent the wheel, write less code , use OOP etc.
rock
ok so for now if i just create a fbv in views.py that should work right
rock
ok thanks 👍
Mirco
dynamic
I'm getting the following error: (postgres.E003) ArrayField default should be a callable instead of an instance so that it's not shared between all field instances. HINT: Use a callable instead, e.g., use `list` instead of `[]`. This is the link to my model: http://snippi.com/s/3j6sd8w
dynamic
Can someone help?
dynamic
I tried changing the ['tag_status'] to a function which returns ['tag_status']. This didn't work.
Shreehari
sending multiple contexts of same view makes page loading slow?
dynamic
From DJango 1.8 to Django 1.9, was there a change in Migrations, if the initial migration file did not have the value initial=True then it wont be picked up?
👍
I have an independent table in my mysql database that I'm using in my django project. how I can access that table in django like ={ query = independent table.objects.all() }
👍
what do you mean with indipendent ? do you have a model ?
i have a table in my database but not in models.py
Mirco
i have a table in my database but not in models.py
and why don't you make migrations even for that one ?
👍
and why don't you make migrations even for that one ?
i am create that table from another script
👍
so this is not possible
Mirco
i am create that table from another script
mmm I don't know your requirements but I think you can design again your project structure
Mirco
if u don't share the error, it's hard to help ya we don't have a magic ball yet
Mirco
I think you can refactor lots of thing, especially all the stuff related to pandas
Mirco
did you understand my problem
not yet, at the moment I have no time to focus on it later I will try to read it better
Sagar
Like this
Sagar
Use imgur
Sagar
Or send code using pastebin
Anonymous
How to use jupyter for django codes?
Marlysson
How to use jupyter for django codes?
using imports on each cell probably works fine.. Do you are trying to do something specific?
raven
Can anybody help me ? In my project i have a view and it's depending on a model.objects.all() if i add new values its not getting reflected in view.
raven
i reloaded the page then too it's no changes
Margo
Browser can cache data too. I've struggled with similar problem recently and solved it with decorator @never_cache.