1      

Re:

Hello everyone.
I know that such things are found in tutorials and documentation, but I have 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.

-----
File Attachment :
models.py   Download

2      

Re: Noob, with problems and with a deadline

Sorry, it seems that the animation does not work to post in the forum, and trying to refresh the page, I introduced some other post. Please do not take this as spam, is a normal post, and I need help. Thank you for your attention.