Doragonsureiyā
Hi! Sometimes my css files are not updated even if i restarts the whole django server! Any solutions?
Impossible to help without details. Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
levi
any details?
Changing some text styles are not reflected in page.
Maxim
Changing some text styles are not reflected in page.
please read the article at the link above
Jack
I struggle with customizing login forms
Jack
Any advice
Doragonsureiyā
I struggle with customizing login forms
No one can help you until you explain your difficulties.
Maxim
Any advice
elaborate
Jack
The login form doesnt seem to correspond with the backend
S
Hello Good evening Guys I want to create tables in a different schema in django
S
How to do that
Farzin
{% for color in product.colors.all %} <span class="color-option selected" data-color="white" data-name="{{ color.name }}" style="background-color: {{ color.code|safe }};"></span> {% endfor %}
Majid
Hi there, is it possible to deploy python django web application on wordpress?
Maxim
Hi there, is it possible to deploy python django web application on wordpress?
if you mean wordpress.com hosting, you'd better ask their manager or support
Majid
what? wordpress? what do you mean?
I developed a simple web application using python django framework. user will search the name. we will send request to the API with that name. get the data of that searched user. and display below input field in the form of table. My friend wants to deploy it on the wordpress. instead of pythonanywhere, heroku, etc.
Maxim
Yes I meant wordpress.com
so, read the message carefully
Majid
Once check cpanel
are you able to deploy it?
N
I have problem with pip installing wsgi? Uwsgi? After cloning a Django app How to solve this cuz it gives wheel error while installing it i have searched everywhere and stack overflow that couldn’t solve the problem Anyone got an idea how to fix this error?
Doragonsureiyā
I have problem with pip installing wsgi? Uwsgi? After cloning a Django app How to solve this cuz it gives wheel error while installing it i have searched everywhere and stack overflow that couldn’t solve the problem Anyone got an idea how to fix this error?
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
乇PIPHANY❦▧▧❄️
do I need to add {% static to font links?
Macara
Hello everyone, how can I deploy a django application on a local network
cj
Hello everyone, how can I deploy a django application on a local network
run the runserver command using 0.0.0.0 and from the other computers use the IP of your local machine
Shubham
Hi I have different users and I have attached roles to them by using models.py How do I make the login that they get redirected based on login and become unable to access the pages that are not allowed to them
Farzad
do I need to add {% static to font links?
yep, but not possible in a css file, you need to import the fonts using inline css, the style tag
Shubham
thats just an if or a switch case
How do I make them not be able to access pages later that they are not associated with. As they would be logged so i can't say if user anonymous redirect them
Farzad
How do I make them not be able to access pages later that they are not associated with. As they would be logged so i can't say if user anonymous redirect them
If a user is logged in, retrieve their information using request.user and check their privileges. Based on these privileges, you can determine the appropriate actions to take. For example, if User A is logged in but does not have access to certain pages, while User B has the necessary privileges, you can use a conditional statement to allow only User B to access those pages. Did I correctly understand what you meant?
乇PIPHANY❦▧▧❄️
yep, but not possible in a css file, you need to import the fonts using inline css, the style tag
so linking it in a the html page inside the header also doesn't suffice ?
Farzad
so linking it in a the html page inside the header also doesn't suffice ?
I haven't try that, but tried css font face via django's static tag inside an inline css (style tag) in my html
Shubham
If a user is logged in, retrieve their information using request.user and check their privileges. Based on these privileges, you can determine the appropriate actions to take. For example, if User A is logged in but does not have access to certain pages, while User B has the necessary privileges, you can use a conditional statement to allow only User B to access those pages. Did I correctly understand what you meant?
Yes. I wanted to ask let's say user A can access page A And b access page B In the log in function I can use if else to take A to page A Now if the user A puts the url to page B. His request will reach from app.url.py to the view.py and to the view function of page B Do I need to put varification on every view? Or there are other ways? Or any function that can help me
Farzad
I didn't understand that last part you said
If you have to repeat the same logic over a model multiple times, make that the model's method and juat call it every time
Minilik_muluneh
(security.W009) Your SECRET_KEY has less than 50 characters, less than 5 unique characters, or it's prefixed with 'django-insecure-' indicating that it was generated automatically by Django. Please generate a long and random value, otherwise many of Django's security-critical features will be vulnerable to attack.
Minilik_muluneh
how i can generate SECRETE_KEY
Farzad
how i can generate SECRETE_KEY
search django secret key generator
devv
search django secret key generator
Or create new django project and take new project’s SECRET_KEY
Minilik_muluneh
ok thanks , but for now i use from https://django-secret-key-generator.netlify.app/
devv
a legendary dev's way
I’m not dev. I’m DEVV
Minilik_muluneh
how can i create when i startproject , is it manualy?
Minilik_muluneh
yes
devv
django-admin startproject …
devv
django-admin startproject …
is that what you asked or i misunderstood you
Minilik_muluneh
ok just to be clear i went how can i generate secret_key
Minilik_muluneh
it is created by default when we startproject ? is there any way to create manually by ourselves
乇PIPHANY❦▧▧❄️
I'm making a small project and I'm including user registration and allat and I initially planned to use postgres. but since I plan to host it online (for free hopefully) I realized that the database will only be on my system which won't be on the system of whatever server hosts it so what is the solution ? does the hosting company give a database by themselves ? is there a way to send your part of the database along with the project file? do I just use the inbuilt sqlite which I can't see?
乇PIPHANY❦▧▧❄️
devv
you want to view and manipulate data in your database. right?
乇PIPHANY❦▧▧❄️
devv
just view for the most part
You can use django admin-panel
乇PIPHANY❦▧▧❄️
You can use django admin-panel
well not for the user info like names and allat right ?
乇PIPHANY❦▧▧❄️
it doesn't have any dynamic content
乇PIPHANY❦▧▧❄️
only the user details
devv
You can get (view, open, reduce) any information you want through the admin panel
乇PIPHANY❦▧▧❄️
how so
devv
You are using django in your project ?
乇PIPHANY❦▧▧❄️
yes
乇PIPHANY❦▧▧❄️
actually the main conflict still remains
乇PIPHANY❦▧▧❄️
where will the details of the user then be stored
乇PIPHANY❦▧▧❄️
do I get a database from them?
乇PIPHANY❦▧▧❄️
or it's automatically sorted in django
乇PIPHANY❦▧▧❄️
nawa
devv
Are you using django models ?
乇PIPHANY❦▧▧❄️
devv
no
Are you created table with using sql commands ?
devv
Or using other ORMs
乇PIPHANY❦▧▧❄️
devv
that is my current plan yes
It’s not correctly