Hi everyone,
I am newbie in django so i'm a bit confused on some features. I have to do
a project for university. It consists in a desktop-web app where employees
can do some staff like handle files, recording files, uploading files on a
mysql database, and an ios native app (written in objective c) where a user
can register himself, log in and ask for the data that the employees have
saved early.
First of all: It's possible to do a server app that communicates with an
ios app (sending-recieve data, notifications) using django-frameworks (and
i suppose also django-rest-framework)? If yes, do you have some
tutorials/guide/book to suggest to understand better how this communication
work and how i can really do this thing?
My second question is related to Custumizing Users on Django.
For my project i need two classes of user:
- Employee (with registration_id as primary key): this user can only log in
on desktop-app
- Driver : this user can only log in on ios-app
can i have multiple custom users, for instance :
class Employees(AbstractBaseUser):
registration_id = models.IntegerField(max_length=10,unique=True, null=True,
blank=True)
first_name = models.CharField(max_length=30, null=True, blank=True)
last_name = models.CharField(max_length=60, null=True, blank=True)
#etc etc etc
class Driver(AbstractBaseUser):
license_plate =....
first_name = ....
#etc etc etc
is that reasonable?
Sorry for my bad English.
I will appeciate any kind of help
Thank you
Cheers
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/2aa960dd-1b95-427e-bb41-c497fcb6333c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.