isa
But statis files are not okay.
isa
:)
isa
Everything works except static files.
Mirco
You've ran collectstatic ?
isa
yes.
isa
above adjustmens seems okay ?
Mirco
Yup, but we need also nginx config to be sure
isa
This is nginx error.log
Mirco
Use code sharing tools
isa
sorry
Mirco
Anyway read “Configuring Django static files with Nginx” by Jagadanada Saint https://link.medium.com/McpuuQH1y6
isa
https://pastebin.pl/view/859c0aa8
isa
okay thanks
SIR HENRY
Hey check out this app to learn JavaScript : https://play.google.com/store/apps/details?id=com.code.jupiter.learnjavascript JavaScript tutorial provides basic and advanced concepts of JavaScript. Our JavaScript tutorial is designed for beginners and professionals. it includes all topics of JavaScript such as introduction, Basic JavaScript JavaScript Object JavaScript BOM JavaScript DOM JavaScript Validation JavaScript OOPs JavaScript Cookies JavaScript Events JavaScript Misc JavaScript Advance There are also given JavaScript *Interview Questions* and *Programming Room* to help you better understand the JavaScript. *(Please give us good rating and reviews)*
Fernandy
hi
Fernandy
please all master....i have a problem to install mysqlclient for python 3.8.2 can any one solve my problem ? please
π
Question: I created a virtualenv and changed to the virtualenv DIRECTORY in PowerShell and activated it with ./scripts/activate.bat ./scripts/activate after installing django in the current DIRECTORY I created a new django project in that DIRECTORY after I then changed the DIRECTORY to the new django project's DIRECTORY I am about to run 'django-admin startapp appname". should that be in the DIRECTORY of my django project???
π
google keeps taking me to pages that don't answer my question
ecDesign
Okay, Yes I installed Django in activated virtualenv... That makes sense. 👍Thanks
and yes.. into django project... TIP: I always create an apps directory into proyect directory... its more organized. maybe this can help you (I use windows with wsl but i will try to use windows commands): - Install python3 - pip install virtualenv virtualenvwrapper-win (virtualenvwrapper on linux) - mkvirtualenv <projectname> - pip install django - django-admin startproject core (this create a dir core with the project base and the config in a subdirectory core) - rename core <projectname> (mv on linux) (rename directory) - cd <projectname> - mkdir apps - python manage.py startapp <web> (by example) - mv web apps (move the web directory into apps directory) - add apps.web to my INSTALLED_APPS in core/settings.py - make-migrations, migrate, etc
Anonymous
Hi guys
Anonymous
I want to develop online house selling and rent
Anonymous
Using django
Anonymous
Can you help me
Gil
I want to develop online house selling and rent
With your words I think you are in stage 0. You need to know how often will be updated, new house, remove house.... Porftolio vs CMS.. Experienced user introudcing new house or basic user... Then chose a kind of frontend and database ( or not)... technologies.... I can't help more if you don't define what you want, and what is the problem, good luck! (of course django is good solution!)
Lucibhish
Question : Getting the below error while deploying to heroku: error: RPC failed; curl 18 transfer closed with outstanding read data remaining
محمد دلشاد
i juat want to filter out some products wih simillar tags
محمد دلشاد
Note : tag is M2M field
محمد دلشاد
https://pastebin.com/Kzi8FaMU
utkarsh
Can anyone tell me the logic behind cart items
utkarsh
In ecommerce site
utkarsh
Plz help mr out guys
محمد دلشاد
In ecommerce site
u have to create one additional relation which will hold the order id and product it (mainly) and in ur actual order relation you have to introduce a filed say completed(boolean) which will tell you that this ordr is completed or not
محمد دلشاد
if order has been completed then the products have been purchased by the customer and if order has a status of incomplete then these product are in currently cart
محمد دلشاد
got me?
Cesar
u have to create one additional relation which will hold the order id and product it (mainly) and in ur actual order relation you have to introduce a filed say completed(boolean) which will tell you that this ordr is completed or not
Uhm not sure if you should create an order for items in cart... I would create a cart model with user_id, item_id, qty and only when user click checkout create an order based on user's cart items
Cesar
This way I won't spam orders table with items not actually been in any order (left on carts )
Sourav
well if a user can have multiple persons, you cant have a one to one
But when a person creates a new person ....then how will i get a user object corresponding to newly created person object?
Sourav
Get all the persons that are owned by User
I was thinking that as soon as the Person object is created by a existing Person then i will create a User object corresponding to newly created person object by signals ...
Sourav
Cuz the pblm here is that the count of Person objects becomes greater than User objects...
Anonymous
Make patch request
Anonymous
Make patch request or you can set partial = True, when calling serializer
Mirco
get the instance, update the field like a normale class attribute and call save()
Anirudh Reddy🇮🇳
Any know django here
Owolabi
Any know django here
What do u want?
Anirudh Reddy🇮🇳
I got error while running server sir
cj
Any know django here
no... we all know WordPress only
cj
Anonymous
Hey how i connect my django with oracle db
Owolabi
Hello guys, I'm trying to display logged in user wallet details using django built in loginview by overriding the get_context_data method but each time i referenced self.request.user i get anonymous user error pls help me out thanks.
Anonymous
How i change my django project name with one command
Anirudh Reddy🇮🇳
Hello guys I got an error while running server please help me
Doragonsureiyā
Hello guys I got an error while running server please help me
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Anirudh Reddy🇮🇳
http://pastebin.com/EyaeAbX8
Anirudh Reddy🇮🇳
http://pastebin.com/EyaeAbX8
This is the error i got please help me out
Anirudh Reddy🇮🇳
Kapil
Can anyone help me in django
Kapil
Project
Kapil
I can pay you . If you want
ATUL
TypeError at admin/ 'set' object is not reversible Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 306 Exception Type: TypeError Exception Value: set object is not reversible Exception Location: C\python 3.8 2 Uibe Site-packages\django\urls\resolvers py in populate, line 455 Python Executable: C:\python 3.8 2 python exe Python Version: 382 Python Path: I'C:\\Users\\ASUS\ \PycharmProjects \Django\ \ravana", "C:\\python 3.8.2\\python38.zip', "C:\\python 3.8.21\DLLS, 'C:\\python 3.8.2 Viib. 'C:\\python 3.8.2, *C:\\Users\\ASUS\ \Appdata\ \Roaming Python Python38\site-packages Server time: *C:\\python 3.8.21\lib\\site-packages ") Mon, 18 May 2020 03 37 54 +0000
Marline
Hey how i connect my django with oracle db
https://docs.bitnami.com/installer/infrastructure/django/administration/configure-oracledb/
Marline
Hello guys I got an error while running server please help me
Share the error message but I think you might issues with your migrations
Marline
How to solve this error
Share your admin.py file
ATUL
Share your admin.py file
Thanks for the reply, After some time i solve this problem. 🙂
Anirudh Reddy🇮🇳
Anirudh Reddy🇮🇳
Sweetie
Due to Covid some business's are only opening during certain hours and certain days of the week. What would be the best approach to implement it in a model so users can do this: Atleast Start: 08:00 Stop: 09:00 Start: 13:00 Stop: 15:00 Or if I can do this that will be even better: Everyday Start: 08:00 Stop: 09:00 Start: 13:00 Stop: 15:00 Monday Start: 08:00 Stop: 12:00 Start: 13:00 Stop: 15:00 and so on... I am trying to make it very user friendly for end user as it will be a new change so they need to quickly adapt and underatand it. These are not just text representation but my query manager should only return the objects that fall between current slot. If I call objects at 12 PM it should return only those objects which are active currently