Ghorz
snc
Ghorz
Ghorz
Schools management System
Relate the below models:
1. School
2. Class
3. Teacher (User model)
4. Student
5. Subject
Note:
1. Use Postgres Database
2. Each student must be mapped to a single class
3. Single Teacher can be mapped with multiple subjects
4. Do not map Teacher - Student models
5. Have created_at and updated_at fields in all the models to record when the row is updated or created (You should not explicitly modify these fields in the views or serializers).
6. Follow RESTFul standards while designing APIs
To Do:
1. Write services that provide basic CRUD operations (GET, POST, PUT, DELETE) for all the models
Additional APIs needed apart from basic CRUD:
2. List classes along with the list of students in each class
E.g.
[
{
"id": 1,
"name": "class 1",
"students": [
{
"id": 1,
"first_name": "Firstname",
"last_name": "Lastname"
},
{
...,
...
}
]
},
...,
...
]
3. List students for a particular teacher and class
Do not post code here, use pastebin.com
Anonymous
is a good practice to have an drf-api as a project app, or is it better to be a stand-alone project?
snc
Ujjwal
Someone plz guide me
I am a beginner in django . . I have read some topics in docs ..made a
Simple todo app where u can create and delete todo lists ..
Now plz suggest a roadmap to continue further ...I mean which project to make or now what to do ..what to learn ..I mean there is so much in docs ..I get overwhelmed ..if anyone cud suggest me something which give me a direction in django ..it wud be very helpful ...u can dm me too ..I wud be very thankful to u ...as far as frontend in concerned I know html css bootstrap and some js ..
I am in second year .. I am a sport competitive programmer ..Now getting some hands dirty in web dev in python ..
Thanks
Forgive me if I have asked a stupid question ..I am new to development
Harsh
Anonymous
Mahesh
I want to create a platform for video conference using Django
So please suggest me what can i do first
Andrej
Someone plz guide me
I am a beginner in django . . I have read some topics in docs ..made a
Simple todo app where u can create and delete todo lists ..
Now plz suggest a roadmap to continue further ...I mean which project to make or now what to do ..what to learn ..I mean there is so much in docs ..I get overwhelmed ..if anyone cud suggest me something which give me a direction in django ..it wud be very helpful ...u can dm me too ..I wud be very thankful to u ...as far as frontend in concerned I know html css bootstrap and some js ..
I am in second year .. I am a sport competitive programmer ..Now getting some hands dirty in web dev in python ..
Thanks
Forgive me if I have asked a stupid question ..I am new to development
Choose a problem which you could try to solve with a website. Solve the problem with Django. It could be something simple. You will learn a lot during this process. Sometimes people underestimate how much work it is to release a good web project.
When I started to learn Django I created a platform through which people can connect their Smartphone to a Rest-Api and sent sms via the api through their smartphone.
https://www.sms-api-gateway.com
In this Project I had to touch 80% off all the Django functionalities. Like a custom User object, migrations, sending e-mails, logging warnings and errors, writing plugins, using third party plugins, fixing bugs in third party libraries, writing monkey patches, customizing different aspects in Django, using the template engine, improving the performance, using celery, customizing the Admin UI, using Ajax, integrating authentication methods and much much more. The most fun part was customizing Django Oscar.
It took me many months to go through all of this, but it was worth it. I feel comfortable to implement the next projects.
I like the process to learn some useful new skills and to the the progress how something arises.
Hari
https://youtu.be/S_Y1i1meCyw
Ujjwal
Choose a problem which you could try to solve with a website. Solve the problem with Django. It could be something simple. You will learn a lot during this process. Sometimes people underestimate how much work it is to release a good web project.
When I started to learn Django I created a platform through which people can connect their Smartphone to a Rest-Api and sent sms via the api through their smartphone.
https://www.sms-api-gateway.com
In this Project I had to touch 80% off all the Django functionalities. Like a custom User object, migrations, sending e-mails, logging warnings and errors, writing plugins, using third party plugins, fixing bugs in third party libraries, writing monkey patches, customizing different aspects in Django, using the template engine, improving the performance, using celery, customizing the Admin UI, using Ajax, integrating authentication methods and much much more. The most fun part was customizing Django Oscar.
It took me many months to go through all of this, but it was worth it. I feel comfortable to implement the next projects.
I like the process to learn some useful new skills and to the the progress how something arises.
Thanks a lot .for your guidance
I really appreciate it.your post will surely help me to give a certain direction .
Anonymous
how to search in django like multi query
like if user type some text and select dropdown and other dropdown
how to make fetch from db
Mirco
Anonymous
i use query=post.objects.filter(title__icontains)
Anonymous
for single search
Mirco
Just use an OR and you can search on multiple fields ( not the best way but it works )
Anonymous
how
Anonymous
like (title__icontains or content__icontains)
Mirco
how
Go into documentation and look for using Q class into queries
Mirco
! search
Doragonsureiyā
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
Mirco
It's enough to type django orm or
Mr
I have error when i install postgresSQL
Mr
COMSPEC does not seem to point cmd.exe
Mr
How to solve this problem please help me
Jay
Has anyone successfully implemented jwt with django for websites using jQuery? Because I am scared that the implementation I have in my mind is prone to security breaches
Jay
Harshit
https://youtu.be/YiX1wIzIt4g
Harshit
Must watch 👆
OneZer0
Hello, does anyone have any example of how I can upload multiple files to the database?
Omar
OneZer0
is it using ajax?
Omar
Yeap, you can use FormData on frontend site
Omar
If JQuery, you must set processData to false and contentType to
multipart/form-data
Holla
I tried to login the admin panel seems iforgeted the username and the password and when i ever try to create new superuser terminal throws un error saying "enexpected keyword argument 'force_insert'c
Holla
Maz
I have a bunch of records fetched from mysql using joins.
I want to store this data in a redis cache.
Which is the most efficient way to do this?
Omar
Omar
Try to use get method of dictionary
Omar
Also check you are signing with multipart/form-data the form on the template
imacat
Hi. I wonder if there is any way I can make the trans and blocktrans to return strings as unsafe? I do not want the translators to worry about the HTML characters.
Mahesh
Knight
query = f'INSERT INTO collector_population (collector_mac, count, published_at, updated_at, counted_at) VALUES (%s, {count}, now(), now(), {counted_at}) on duplicate key update count = values(count), updated_at=now(), counted_at = values(counted_at)'
cursor.execute(query, (collector_mac,))
Knight
Do yo uguys see any syntax error?
Ghorz
query = f'INSERT INTO collector_population (collector_mac, count, published_at, updated_at, counted_at) VALUES (%s, {count}, now(), now(), {counted_at}) on duplicate key update count = values(count), updated_at=now(), counted_at = values(counted_at)'
cursor.execute(query, (collector_mac,))
f"""...... """
Ghorz
Knight
[ERROR] ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '11:39) on duplicate key update count = values(count), updated_at=now(), counted_' at line 1")
Ghorz
Show your code with pastebin
Knight
sorry, but Im not sure of how to show my code whith pastebin. Do you mind if I send it in person?
Nikolay
Pankaj
Guys Anybody Has Django Crud Operation Code??
Pankaj
Yes
Ninja
Pankaj
Anuj
Anyone help me how to design a Database schema
Sooraj
What is correct file permissions for .py files?
Dim
The help of experts in optimisation of script AES128 under a python 1.5.2 for GL868 Dual Telit is necessary
Written on python AES128 works very slowly on GL868!
Pradeep
Guys help me in creating a django models n views...like student have to give his details...and that should go to the staff profile...if the staff reject that student have to get notified..and if the staff approved it ...it should go to the hod profile ...if the hod approved it also get notified by the student...kindly help me
Dim
Colleagues, somebody can is familiar with programmers from Telit? Or who knows realised the interpreter a python 1.5.2 on their modules GL868 Dual?
Pradeep
Guys help me in creating a django models n views...like student have to give his details...and that should go to the staff profile...if the staff reject that student have to get notified..and if the staff approved it ...it should go to the hod profile ...if the hod approved it also get notified by the student...kindly help me
blessing
i can help
blessing
anyone willing to collaborate with me on a django project
Emeafu
Emeafu
blessing
no brainer at all
Emeafu