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

Migrated blogs from old site to new django app (Envision project) #163

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

UtsavBhamra
Copy link

@UtsavBhamra UtsavBhamra commented Aug 17, 2024

Description

As part of envision project, I migrated all the blogs from the old jekyll site to a new django app.

Fixes # (issue)

Dependencies

markdown v3.6

Type of Change

What types of changes does your code introduce?
Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration. (for bug fix / breaking change)
Put an x in the boxes that apply


Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • [ x ] My code follows the style guidelines of this project
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [ x ] I have made corresponding changes to the documentation
  • [ x ] My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • [ x ] New and existing unit tests pass locally with my changes

@@ -17,7 +17,7 @@
path("reset/done/", PasswordResetDoneView.as_view(), name="password_reset_done"),
path(
"reset/confirm/<uidb64>/<token>/",
PasswordResetConfirmView.as_view(),
PasswordResetConfirmView.as_view(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary white space. Did you use pre-commit hooks?

author=models.ForeignKey(ExecutiveMember,on_delete=models.CASCADE)
slug = models.SlugField(max_length=200,null=True)
description = models.CharField(max_length=400)
author_github = models.CharField(max_length=70,blank=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not just fetch github from the executive member model? Any reasons for adding an extra field here?

author = models.ForeignKey(ExecutiveMember, on_delete=models.CASCADE)
slug = models.SlugField(max_length=200, null=True)
description = models.CharField(max_length=400)
author_github = models.CharField(max_length=70, blank=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not use a URL field instead?

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