link to my mindmap: https://miro.com/app/board/uXjVK1IKqsk=/
Link: https://drive.google.com/file/d/1SYwaMzGs6PuOuEuA6Yi4T2Q0p8dvmSvd/view?usp=sharing
Wireframe is created in https://balsamiq.cloud/srvezeo/phn02iw/r3EBE
Home page:
Blog page:
Courses:
Blogpost:
In blog page, I would like to have a clean and calm style. You would be able to search for a blog by category. You have to be logegd in to comment a post, but I want it easy so the comment will be approved right away without the admins approvement. You still have a draft and publish choice, so you can read through your comment before publish.
pip3 install 'django<4'
pip3 install dj_database_url psycopg2 pip3 install dj3-cloudinary-storage
pip3 freeze --local > requirements.txt
django-admin startproject mindfulgrowth python3 manage.py startapp blog Remember to add your apps in to the 'INSTALLED_APPS' in setting.py
Copy the DATABASE_URL create a new file manual with name: env.py This file need to be placed in the project cataloge Import the os library: import os Set environment variables: os.environ.setdefault( "DATABASE_URL", "postgres://uottaphddte:1ZsY6k60KNPN@ep-gentle-mountain-a23bxz6h.eu-central-1.aws.neon.tech/vocal_moan_poem_31644")
os.environ.setdefault( "SECRET_KEY", "django-insecure-%s0!8rr$!pbkcomh1bmeybs4nldjtws=8n%pffttkm%(-nrrma")
os.environ.setdefault( "CLOUDINARY_URL", "cloudinary://618768418781469:Q8KVKcOdIzeC4kCaKocmseNCHmM@dvh69l0yv")
os.environ["SECRET_KEY"] = "mysecretkey"
Add the env.py-file to the setting.py file with commando in the file: import env
You also need to put this in the setting.py file under :
ALLOWED_HOSTS = ['8000-christina5p-mindfulgrow-0ffy6j8ksnb.ws.codeinstitute-ide.net', 'mindfulgrowth-5f753257331e.herokuapp.com', '8080-christina5p-mindfulgrow-0ffy6j8ksnb.ws.codeinstitute-ide.net']
CSRF_TRUSTED_ORIGINS = [ "https://*8000-christina5p-mindfulgrow-0ffy6j8ksnb.ws.codeinstitute-ide.net", "https://*mindfulgrowth-5f753257331e.herokuapp.com" ]
Dont forget to add apps and libraries in
INSTALLED_APPS = []
Before deploying on heroku make sure: DEBUG = False
web: gunicorn basic_mind.wsgi hint: It´s important to spell Procfile with a capital
For deploying, I use the Heroku app. At first, you commit everything to GitHub. In Heroku, you set up an app for the project and deploy the changes you make to the public site.
You connect the app to your repository in GitHub with the same name. I chose to make a manual deployment, so I can see that everything goes ok and have control of my project.
You need to create an app for your project in Heroku.
In settings you also need to fill in the URL:s in Config Var
After that you go to Herokus deployment section
Scroll down to the bottom and click the "deploy button
On the top at right hand side, you can click "open app" to see public site. If there is any error, you can find the logs if you click "more" button.
I created a repository in Git Hub and connected a project to the repository. In the project, I worked with the canban and created the user stories there. From Gitpod, I pushed my changes to GitHub with the commands
When I add, deleated or changed anything, I committed them back to GitHub using the following commands in the codespace terminal: Git add . Git commit -m"text" Git push
To run a backend application in Gitpods terminal, type: python3 manage.py runserver
To see and implement changes in Django, type: python3 manage.py makemigrations pyhton3 manage.py migrate
To fork this repository, click the "Fork" button at the top right corner of the main repository page. On the "Create a Fork" page, you can change the name of the repo if desired. Check the box if you want to copy the main branch or multiple branches (main is selected by default). Then, create the fork.
To clone the repository, you create a copy in your repository (with all files and history). This creates a remote link to the original repo, allowing you to work in your copy and push changes back to the original. Open your repo and click the green "Code" button on the right-hand side. The easiest way is to open it with GitHub Desktop.
You can read more information on cloning at the GitHub : https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository
CI Database https://dbs.ci-dbs.net/
https://youtube.com/playlist?list=PLXuTq6OsqZjbCSfiLNb2f1FOs8viArjWy&si=9t7TdLJVAM9BM9Ga https://realpython.com/build-a-blog-from-scratch-django/#set-up-the-development-environment https://www.youtube.com/watch?v=ZUiTiUj-tZw https://www.youtube.com/watch?v=PXqRPqDjDgc https://dev.to/radualexandrub/how-to-add-like-unlike-button-to-your-django-blog-5gkg
Suggestion to create sexcerpt automatically save