Skip to content
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

Open
wants to merge 79 commits into
base: master
Choose a base branch
from

Conversation

rb-25
Copy link

@rb-25 rb-25 commented Jan 3, 2024

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.

Copy link

@Dhruv9449 Dhruv9449 left a 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):

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):

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()

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):

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

@Dhruv9449 Dhruv9449 changed the title feat:added all initial files and auth views feat: added all initial files and auth views Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants