Re:
Hello everyone.
I know that such things are found in tutorials and documentation, but I encuetro a problem trying to do my first django web system (and any other language). I have an assignment for a class, and taking a disappointment in PHP (Because of reasons).
The problem is I do not understand session management and django Auth module as explained in some web documents. Besides I have to extend the predefined user auth, adding to social security number (CI), direction (direction) among others.
The model concerning client (user) is:
# the code is in Spanish, but do not force that you will have to answer in Spanish
# django 1.3
class Cliente(models.Model):
usuario = models.OneToOneField(User)
ci = models.PositiveIntegerField(primary_key=True)
direc = models.TextField(max_length=300,help_text=ayudas_max%300)
tlf = models.PositiveIntegerField()
def __unicode__(self):
return unicode(self.usuario)
def fecha(self):
return unicode(self.usuario.date_joined)
And I need to learn is:
- Create a login form and their views.
- Create a form to create user accounts, without using the admin site.
- And if possible (if regulated or prohibited to mix things, I put it in another post) to create a host or server with apache (mod_wcgi) or something like that, besides that send the style.css and images. (Low priority)
If required, I can show all the code in the project. I appreciate any help.