Yes
Hi guys I need help, python 3 is compatible with Centos 7 ?
Yes
I just asking because it is impossible to deploy my django project
Mehmet
I just asking because it is impossible to deploy my django project
Yes, it is. Can you give specific error messages or some tracebacks
Yes
Yes, it is. Can you give specific error messages or some tracebacks
Hi men. It's not working when I do the setup with Apache + mod_wgsi
Yes
I mean .. the step when I check mydomain.com:8000 running server ... but when I try to setup with Apache nothing show me... mydomain.com without port
Slava
Friends, colleagues, Hello everyone! Question. The site has several pages. Each page has several sections. It is necessary that the customer can edit these sections via Django admin panel. The most logical thing that comes to my mind is that each page has its own application. Is this accepted among developers? And maybe someone has experience, or ideas, how to implement this and make it in a proper way? Many thanks in advance!)
Mehmet
I mean .. the step when I check mydomain.com:8000 running server ... but when I try to setup with Apache nothing show me... mydomain.com without port
Actually it is not a python it seems it s apache related issue, you can google where access and error logs of apache service and see error messages.
Anonymous
I have a question... how does pre_save function work.... an example would be really appreciated there is nothing in the docs
Isaías
Hi
Isaías
how add status code extra in swagger django rest
Isaías
?
Abdullah
hi guys.can i use ajax response in django template?if yes how?thanks now
Anonymous
how add status code extra in swagger django rest
Hey man Your face is very similar to School Boy's... Search in YouTube.
R.U.S.H.A.B.H
I'm updating data through 2 different function in view.py ... I'm confused how to update the data of model with html... Please anyone can help me?
R.U.S.H.A.B.H
Anyone who has updated data with python forms please solve
Taranjeet
I am doing only a part of this project. So I need to do like this
I am asking for the reason of doing this. There might be the case that you need something else.
Winkee
Hi I am new to web design, I have one problem. After I finished editing my .html, how I can view the effect in browser? I mean, how I can make the browser auto reload?
Anonymous
anyone can help me?
Learn about Django rest framework
Abdullah
thanks guy.i hear django rest framework but newer i interestin this.so i can this with rest framework?
Abdullah
(sorry my broken english)
ɱσσɳ
Learn about Django rest framework
I also want to learn that
isa
Hello, I try to use "django-filter" Below is my code. https://hastebin.com/nenurumipi.bash Below error occured when I try to use "as_p" https://hastebin.com/jinuzeliki.bash Can you help me please ?
Abdullah
filternesnesi.as_p seklinde denedinizmi?
isa
hayır cunku form olarak gelsın ıstıyorum
isa
o zaman form olarak gelmez
isa
ama bır denerım
Sahil
Can anybody help me in my django project data is not submitting
Sahil
https://github.com/sahilsao/Centralised-Management-System-Django-master
Shubham
Hi all
Shubham
def get(self, request, *args, **kwargs): qs = UpdateModel.objects.all() print(qs) json_data = qs.serialize() print("json_data") print(json_data) return HttpResponse(json_data, content_type='application/json')
Shubham
in this print(json_data) giving None
Shubham
why so?
Shubham
print(qs) outputting properly
Anonymous
Use values
Anonymous
Or values_list
Sahil
Ok thxxx i will this
Shubham
okay
Bunty chhatri wala..
print(qs) outputting properly
Jd= serialize("json",qs) Try this
Shubham
it worked thanks
Tiny
anybody help me. i tried updating a record 'first last' but 'first' was only retrieved in text field.. how to retrieve complete record ??
Tiny
inside the textfield*
Tiny
its a crud app. i saved a record. eg: 'first last' . when i tried to update that record it does not retrieve record completely 'first' was only retrieved in textbox
Tiny
input field
Tiny
anybody ??
Bunty chhatri wala..
input field
In that field .. value= {{xyz.title}} here xyz is the context you passing through views
Aman
How to solve module error in visual studio ??
Aman
Module not found error ??
Kyrylo
Module not found error ??
pip3 install <module>🌚
Doragonsureiyā
Module not found error ??
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
Tiny
In that field .. value= {{xyz.title}} here xyz is the context you passing through views
i've done that. still it does not retrieves complete record.
Bunty chhatri wala..
Tiny
views :
Tiny
template
Vaibhav
If any one having some resources on making a rest api please share
Jai
If any one having some resources on making a rest api please share
Check out Dennis Ivy's video on rest apis
Darth✧
Helo everyone, In django channels, can I use form as input in consumers?
Anonymous
Hello guys how can ı translate djangoo messages ???
Nazar
Hello, I want to make SPA (React+Django) what is the best practise to organize a project ? I see that the most of tutorials start from (1.frontend 2.backend) but the final code on github is not, they separate every django app, and put it together with forntend folder as another app As I understand, good practise is to implement MVC, but were is business logic (model) and were are controllers ?
Nazar
As I understand, good practise is to implement MVC, but were is business logic (model) and were are controllers ?
Nazar
in API
Mehmet
Hello, I want to make SPA (React+Django) what is the best practise to organize a project ? I see that the most of tutorials start from (1.frontend 2.backend) but the final code on github is not, they separate every django app, and put it together with forntend folder as another app As I understand, good practise is to implement MVC, but were is business logic (model) and were are controllers ?
I guess you wish to learn a way to organize your project structure. I have read a bunch of tutorials and best practice is to separate react and django projects in the repository-level. Personally, I prefer to join both in same repo and implementing deployment script in a single docker-compose file with multiple images to build. I generally position the frontend app in a subfolder and let the docker-compose build-pipeline to handle the service-layer separation.
Nazar
thank you
Nazar
but one question left, where to implement business logic, after i get request from Client, and get data from DB, where to implement all calculations?
Nazar
I have seen Serializers, Models, and Views As I understand, nothing of them is the right place for this
Mirco
As I understand, good practise is to implement MVC, but were is business logic (model) and were are controllers ?
Django best practice is to make models fat Then most of the logic goes into views as always Study Django Rest Framework and you will understand better but it's always Django so best practices are the same
Nazar
I will rely on this
Nazar
thank you