amit
has anyone worked on recommendation engine (ml) ? DM
Rammanoj
Does anypne here have idea about the maxm number of mails that can be sent using Gmail per day ? ( With API )
Rammanoj
I have read about it and Gmail allocated ceritan quota for it. But I cant understand how many mails can be sent maxm for that quota !!
Marlysson
Folks, which metrics, best pratices or recommendations of refactoring in django projects ( views, apps, orm ) or along project development do you would like see in a dashboard to help you develop better projects?
Anders (izzno / gooood) 🇳🇴
Is this a "What can make Django better" question ?
Marlysson
Is this a "What can make Django better" question ?
not exactly.. "projects made using django" is better explained. following best pratices..
Anders (izzno / gooood) 🇳🇴
I'm sorry but this still does not mean anything...
Anders (izzno / gooood) 🇳🇴
Are you asking for Django best practice ?
Marlysson
Are you asking for Django best practice ?
yes.. I mean coupling classes, business logic in wrong files.. or separated in many files.. fat apps.. could be separate into more one..
Anders (izzno / gooood) 🇳🇴
Yes, youre throwing out adjectives... but wheres the question...
Anders (izzno / gooood) 🇳🇴
I mean coupling classes, business logic in wrong files.. or separated in many files.. <—- I mean, if this is what you are thinking about the docs are pretty clear...
Marlysson
Yes, there are some many links around internet point out best pratices to work with django, this ( coupling ) was one example..
Marlysson
As developer, some of them don't see it ( I don't know why ) and build bad projects and hard to maintain..
Marlysson
These metrics will show how get better some aspects of projects.. And the question was: Which points of django features ( after project built ) would you like know where act to fix them ? E.g. : Query performance, so many classes, fat managers . templates with logics.. or whatever..
Marlysson
Reading the group's rules I saw the "meta" questions isn't allowed.. I this is one, sorry for this.. and I can delete this if necessary..
Alexander
Every tool has it advantages. For me (and I can only speak for my self) Django is an incredible prototyping tool which I've noticed I (others) keep if you need its extensive admin tooling.
Yes, Django is best tool for prototypes. If you are small startup team, just split backend and frontend and do all backend in Django-based project. If not (if your project is big and a lot of developers improve it) - try to split your big service to microservices. You do not need microservices for prototypes but later you should use them. You will see when you will really need them. And if you need microservices, your best start way to do it - make separate auth services (something which will follow OpenID Connect may be) and API Gateway (which will combine APIs of all your microservices for end users). And after that you can split big Django project (with a lot of apps) to smaller projects. [and may be refactor some of them to Haskell :D] about API Gateways, their roles etc. there is not bad article https://arcentry.com/blog/api-gateway-vs-service-mesh-vs-message-queue/
Alexander
so after some time company will get rid of Django OR will adapt Django for creating microservices (I try to say here, Django is not only for prototypes, we can adapt Django and for later project stages as framework for creating microservices)
Alexander
and if your project use microservices, you will find questions like "You still use Django. Why not Starlette [faster in tests, more requests per server, async nature etc.]?" [https://www.starlette.io/], answer is "Because of Django ORM. Keeps things simple, do not need refactor a lot of code."
cokicoki
hi
cokicoki
can someone help me with this?
cokicoki
url(r'^testpage/(?:(?P<year>\w+)/)?$', TestPageView.as_view(), name='testpage')
cokicoki
i need to add <month> parameter
cokicoki
how can i construct this in urls.py?
satyam
'bootstrap3' is not a registered tag library ?? why do i get this error??
R
'bootstrap3' is not a registered tag library ?? why do i get this error??
Probably you not using static tag, otherways share code and we can see
Thomas
Hi everyone. Do anybody work with DjangoCMS? Im looking for field in "Advanced Page Settings" to select page to redirect. I want to implement that field in my model but I dont know to find it.
Thomas
Field where you can choose from page tree and you can select desired page.
Thomas
A link ?
Im looking for model field that I can use in my models.py and I can select in admin plugin a page from tree with that field. So in template I will get URL of that page.
Thomas
URLField ? Never used DjangoCMS yet but models are always the same
Hm...it can be it. I will try it. Im just asking if somebody has an experience with it. Thank you.
Thomas
Yw 😁
Ok so it is not URLField :) . I think it will be some widget.
Shreehari
Guys can i get link for some small django projects for beginners ?
Shreehari
i have completed tutorials , still i want to get hold of it
Deepak R
Guys can i get link for some small django projects for beginners ?
Yes,please have a look at my github repositories. github.com/DEEPAKSINGHRAGHAV
Deepak R
You will surely get a help out of there
Shreehari
thanks
Harsh
can any1 help me in deploying my Django webapplication
Deepak R
For testing purpose ....you can deploy it on ......pythonanywhere.com
Ashok
dict(request.GET), gives me weird python dictionary with array wrapped values
Ashok
{u'num': [5]}
Ashok
but I need {'num': 5}
Ashok
is there any possible?
Ashok
version 1.6.12
Anonymous
Is there any tutorial to learn designing website nd deploying it using django
Anonymous
simple tutorials for beginners..
Raad
Hello I want to build restaurant orders management software that use REST API to communicate between the client and the server. I will write the backend on Python (Django) and the client which is a desktop application using Java Swing or Javafx. I really couldn’t find tutorials for this kind of project. Please guys provide me with anything that could help such as books, paid tutorials, etc .
Romich
who knows how to use markdown bot?
Romich
Nobody?
Azzam
Hello , We have created two apps one for students and other for teachers with admin privileges using django. Simple queries are all fine but we are stuck in between complex queries since our model is very complex. We are facing problems in mapping. We have two endpoints for the APIs and are confused now how to integrate all this. Is there anyone who can help us or is there any blog towards which you can point us so as to solve our problem.
{°_°}
Guyz any link on django deployment tutirial
Azzam
Hello , We are using drf to create a attendance management app and creating two end points one for teacher and one for students. We want to execute queries related to attendance management where the students can view their attendance and teachers can view the attendance of every student. We are using flutter on the front end but we are stuck on how to execute these queries and how to project these queries to the api end points to be further used in the frontend if anyone could guide us to some blog or resources as to how to execute these complex queries or as to what practices should we use to make this api end point. Thanks in advance.
Azzam
https://pastebin.com/63EJsEdJ
Azzam
Pastebin link for the code
Nichita
Hi! I want to use ListCreateAPIView, superuser can create and get a list, but simple user only can get a list. Can I solve this? I don't want to separate this functional in two ulrs, it's not a rest way
inchidi
version 1.6.12
is this your django version? please update it
inchidi
simple tutorials for beginners..
https://t.me/pythonres/32
inchidi
Guyz any link on django deployment tutirial
https://docs.djangoproject.com/en/2.2/howto/deployment/
inchidi
https://pastebin.com/63EJsEdJ
your Attendance model not complete yet. how do you define "Attendance" data? will each row represent one student attend one class for one subject? what Attendance.status for? give more information to us
inchidi
Thank you very much, that was helpful
you can use this endpoint for testing your client code http://echo.jsontest.com/insert-key-here/insert-value-here/key/value if you able to get json from that url, tecnically you can connect to your own server/rest api/webservice later
Azzam
your Attendance model not complete yet. how do you define "Attendance" data? will each row represent one student attend one class for one subject? what Attendance.status for? give more information to us
Attendance.status is the actual attendance of thr student having only single char 'p' for present and 'a' for absent. And yes one student will attend one class for one subject.
inchidi
Attendance.status is the actual attendance of thr student having only single char 'p' for present and 'a' for absent. And yes one student will attend one class for one subject.
you should fix your student model also (the one with lowercase s), you cannot have 2 class with same name so you should rename it and am assuming you want to store which subjects all student took, you can use this model: https://dpaste.de/5v0f you dont need to define id (auto increament index, primary key) because models.Model will automatically add it
inchidi
you're welcome sir 👍
Arun
Hi guys I am using two typs of GET method , on with no params , and other with two params. When i am sending I want the django templates to update the table in Page . but its not getting refreshed .
Arun
any help
Arun
https://www.hastebin.com/giqivotato.rb
Arun
the else function is called after the if .