diff --git a/bloggy/forms/signup_form.py b/bloggy/forms/signup_form.py index b5f5689..dc8107e 100644 --- a/bloggy/forms/signup_form.py +++ b/bloggy/forms/signup_form.py @@ -12,14 +12,15 @@ def save(self, commit=True): user = super().save(commit=False) # Call the parent class's save method # Generate the username based on the user's name (you can use your custom function here) user.username = self.generate_unique_username(self.cleaned_data['name']) - user.is_active = True + user.is_active = False user.is_staff = False if commit: user.save() return user - def generate_unique_username(self, name): + @staticmethod + def generate_unique_username(name): # Convert the user's name to a lowercase username with underscores base_username = name.lower().replace(' ', '_') diff --git a/bloggy/templates/email/acc_active_email.html b/bloggy/templates/email/acc_active_email.html index c0da6be..ef9846d 100644 --- a/bloggy/templates/email/acc_active_email.html +++ b/bloggy/templates/email/acc_active_email.html @@ -1,475 +1,482 @@ - - Welcome to StackTips - - - - - - - + + + + + + - - - - - - -
- + + + + + + +
+ +
+ + - -
- -
- - - - - - -
- -
- - - - - - -
-
-
- Hey, {{ user_name }}
Welcome to StackTips! -
-
-
-
- -
-
- +
+ + + + + + +
+
+
+ Hey, {{ user_name }} +
+ +
+ Welcome to StackTips! +
+
+
+
+ +
- +
+
+ +
+ + - -
- -
- - - - + + +
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
-
- Thank you for signing up and we are really excited to welcome you! -
Explore the unlimited learning opportunities! -
-
-
- Click on the link below to complete your registration and get started! -
-
- - - - - - -
- Complete registration -
-
-
- Explore the unlimited learning opportunities! -
-
-
- Happy learning! -
-
-
- Team StackTips -
-
- - - - - - - -
- - - - - - -
- - twitter-logo - -
-
- - - - - - - -
- - - - - - -
- - facebook-logo - -
-
- - - - - - - -
- - - - - - -
- - github-logo - -
-
- - - - - - -
- - - - - - -
- - instagram-logo - -
-
- -
-
- +
+ + + + + + + + + + + + + + + + + + + + + + - - -
+
+ Thank you for signing up and we are really excited to welcome you! +
Explore the unlimited learning opportunities! +
+
+
+ Click on the link below to complete your registration and get started! +
+
+ + + + + + +
+ Complete registration +
+
+
+ Explore the unlimited learning opportunities! +
+
+
+ Happy learning! +
+
+
+ Team StackTips +
+
+ + + + + + + +
+ + + + + + +
+ + twitter-logo + +
+
+ + + + + + + +
+ + + + + + +
+ + facebook-logo + +
+
+ + + + + + + +
+ + + + + + +
+ + github-logo + +
+
+ + + + + + +
+ + + + + + +
+ + instagram-logo + +
+
+ -
-
- +
+
+ +
- +
+
+ +
+ + - -
- -
- - - - - - -
- -
- - - - - - - - - -
-

-

- -
-
- Have questions or need help? Email us at - hello@stacktips.com -
-
-
- -
-
- +
+ + + + + + + + + +
+

+

+ +
+
+ Have questions or need help? Email us at + hello@stacktips.com +
+
+
+ +
- +
+
+ +
+ + - -
- -
- - - - + + +
- -
- - - - - - -
- -
- -
-
- +
+ + + + - - -
+ +
+ -
-
- +
+
+ +
- -
- + + +
+ +
+ \ No newline at end of file diff --git a/bloggy/templates/email/weekly_updates_email.html b/bloggy/templates/email/weekly_updates_email.html index 76f786a..97437c2 100644 --- a/bloggy/templates/email/weekly_updates_email.html +++ b/bloggy/templates/email/weekly_updates_email.html @@ -195,7 +195,7 @@ -
Don't like these emails? Don't like these emails? Unsubscribe. diff --git a/bloggy/templates/email/welcome_email.html b/bloggy/templates/email/welcome_email.html index 7254a14..fbca3f6 100644 --- a/bloggy/templates/email/welcome_email.html +++ b/bloggy/templates/email/welcome_email.html @@ -175,7 +175,7 @@ -
Don't like these emails? Don't like these emails? Unsubscribe. diff --git a/demo_content/pages.csv b/demo_content/pages.csv index 2623da9..2cccbc0 100644 --- a/demo_content/pages.csv +++ b/demo_content/pages.csv @@ -1,4 +1,4 @@ -title,url,publish_status,meta_title,meta_description,meta_keywords,excerpt,content +title,url,publish_status,meta_title,meta_description,meta_keywords,excerpt,content Privacy policy,privacy,LIVE,Privacy policy,This page explains our privacy policy,,This page explains our privacy policy,"

This privacy policy has been compiled to better serve those who are concerned with how their ‘Personally @@ -84,7 +84,7 @@ Privacy policy,privacy,LIVE,Privacy policy,This page explains our privacy policy time and for any reason. If you have questions or comments about this privacy statement, please write to support[at]stacktips.com. -

" +

" Code of conduct,code-of-conduct,LIVE,Code of conduct,Code of Conduct - StackTips,,,"

All participants of StackTips Community are expected to abide by our Code of Conduct and Terms of Service, both online and during in-person events that are hosted and/or associated with this Community.

@@ -127,7 +127,7 @@ Code of conduct,code-of-conduct,LIVE,Code of conduct,Code of Conduct - StackTips

All the links in the comments are moderated before they are published on site. We don't mind links as long as the links help educate readers. All other promotional links will be removed form - comments.

" + comments.

" Write for us,contribute,LIVE,Contribute,,,,"

We are working on expanding content for this site, and we need your help in writing fresh new content that will help the newbie developers with their learning journey.

The choice of topics will be based on your expertise. @@ -146,7 +146,7 @@ Write for us,contribute,LIVE,Contribute,,,,"

authors page.

If you think you are the right person to make this happen, please fill out the below form and wait for my call/email.

Where to Start?

If that doesn't put you off, here's how you go about submitting your content for consideration:

If this all sounds good, please submit your post at hello.stacktips@gmail.com.

" +

If this all sounds good, please submit your post at hello@stacktips.com.

" About,about,LIVE,About us,"We aim to provide developer-friendly ways to learn programming. With articles, programming course, and quizzes, we aim to teach in the ways developers learn best.",,,"

Hi there, we're STACKTIPS

StackTips brings developer-friendly ways to learn programming. With courses, articles, and how-to guides, we aim to teach in the ways developers learn best.

@@ -234,7 +234,7 @@ About,about,LIVE,About us,"We aim to provide developer-friendly ways to learn pr touch

* Anonymous complaints will be ignored. -

" +

" Terms of service,terms-of-service,LIVE,Terms of service,"This page outlines the legal terms of stacktips.com, its sub-domains, and all associated web and/or mobile apps.",,"This page outlines the legal terms of stacktips.com, its sub-domains, and all associated web and/or mobile apps.","

This document outlines the legal terms of stacktips.com, its sub-domains, and all associated web and/or mobile applications (collectively, “Website”), as owned @@ -338,7 +338,7 @@ Terms of service,terms-of-service,LIVE,Terms of service,"This page outlines the enforce such provision. The rights of StackTips under our Legal Terms shall survive the termination of our Legal Terms. If you have questions or comments about this privacy statement, - please get in touch with us here.

" + please get in touch with us here.

" Cookie policy,cookie-policy,LIVE,Cookie policy,Our Cookies Policy explains what Cookies are and how We use them.,,,"

This Cookies Policy explains what Cookies are and how We use them. You should read this policy so @@ -474,6 +474,6 @@ Cookie policy,cookie-policy,LIVE,Cookie policy,Our Cookies Policy explains what

  • By visiting this page on our website: contact us page
  • - " -Comment policy,contribute/comment-policy,LIVE,Comment policy,This page lists some of the simple ground rules for commenting on this site,,, + " +Comment policy,contribute/comment-policy,LIVE,Comment policy,This page lists some of the simple ground rules for commenting on this site,,, Writing guidelines,contribute/guidelines,LIVE,Gudielines,This page lists guidelines for contributing to StackTips,,, \ No newline at end of file