-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added all initial files and auth views #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove pycache, add it to git ignore, use a django gitignore template
super().save(*args, **kwargs) | ||
created_at = models.DateTimeField(auto_now_add=True) | ||
|
||
class User(AbstractUser): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create another app for this model and its views etc
USERNAME_FIELD='email' | ||
REQUIRED_FIELDS=[] | ||
|
||
class Event(models.Model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even should have a field called organization which will be foreign key
|
||
class Event(models.Model): | ||
name=models.CharField(max_length=255) | ||
date_of_event=models.DateField() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both start date and end date, time also
date_of_event=models.DateField() | ||
created_at = models.DateTimeField(auto_now_add=True) | ||
|
||
class Email(models.Model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of having an Email model, have a Company model and a Company POC model, emails can be generated using that
I added all of the basic files. The views for register,login,logout,forgot password (in the urls). Created the models that I thought i needed right now.