registration with cities...

14 views
Skip to first unread message

Muhammed YILMAZ

unread,
Apr 14, 2018, 8:39:24 AM4/14/18
to Django users
Hi all. First of all i want to thank you all for your very helpful, friendly ideas. i am from Turkey, it has 81 cities. i want to make a site that will enable people living in the same city to exchange goods with each other. people living in different cities should not see each other's share. and users must have an extra fields in account profile registration page. like a shop name, shop address, phone number, city name, special integer code (13-digit), name-surname etc... 

i'm trying but i can't do it exactly. if you can give me an advice, or some part of code to start, i will be very proud.

sincerely,
Muhammed Yılmaz.

M. Page-Lieberman

unread,
Apr 14, 2018, 9:24:03 AM4/14/18
to django...@googlegroups.com
Hi Muhammed.  I'm working on something very similar but starting off in only my city before attempting to branch out to others.  Since, I haven't gotten to where you are yet, I don't have an exact answer.  I can tell you that that I was planning to have a subfolder in the URL for each community (ex. turkeyexchange.net/istanbul.  You can then set up permissions about who can access which subfolders.



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/841c07c2-54fa-4502-bf83-2f4754b4ade4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Samuel Muiruri

unread,
Apr 14, 2018, 9:56:12 AM4/14/18
to Django users
Will tell you the possible ways to tackle this.
  1. You assign the user model with a city name so when you filter results for a user you also filter to match the city they're in.
  2. You use the browser locate feature to get gps info (latitude, longitude) feed that to django through javascript and get results for the area... before this the location will be put into a city

You should consider that the second you have to deal with users who are not in any city or missing info.

Reply all
Reply to author
Forward
0 new messages