Hello, friend.
Come back in a previous section, we have successfully complete one of the simple block project and
I hope you will like it very much so.
Now in this session will build another project and that will be one of the social media project so we
can create one of the social media project with using the Django.
In this section, I will show you that things with the live example.
So for doing this, first of all, we have to create on the project.
So in our exercise folder previously in our minds and our projects folder area I have created of the
Block project.
So now for our social media project, I also have to do I have to create another project so far and
I hope you already remember it.
If you want to create any project, then in particular that folder area I need as a so into the same
area I want to do and to create the project.
I hope you already remember it.
You have to write down another Django Django and then admin Django admin and instead project.
And now I want to put one of the name, my project name I want to do and name it as a my social underscore
project.
So, no, I'm not going to enter.
So now will be created on the folder.
You can see it's already created on the folder as my social project, so all we successfully created
our project, right?
So now we don't need it.
I simply close it.
So that is our project.
You can see it's also created the miners by.
And then I want another folder, the social my social project.
And then all that I want is a certified right.
So friend, we successfully created our project.
So first of all, I don't want to take out this folder.
I want to take out this folder to our editors.
Our all will.
We also need it.
So that was our first project as my block project.
So I wanted to add this folder now because open folder and open folder area here, you can see there
is our folder.
So before that was actually my block project.
Now I'm going to select our my social project together select folder.
And here you can see know successfully add our project, our social media project to our this editors.
Right now.
We don't need this.
I also want to remove everything.
I remove everything from here.
That is all sitting by perfect, so here we added our project to our editor.
That means our Adam editor, right.
So now, first of all, I wanted to create all the application for our project.
So we need one of the logging application and also we need the social application.
Right.
So, first of all, I want to create one of the applications for our logging panel.
That is our default authentication system also will be needed.
So if you want to create one of the application, what exactly you have to do, you have to write down
as a PI or python.
But I named it as a python like Python and the Mannus by my turn, managed by and they start up right.
Is tied up and I just name it as an app on logging.
So that will be our first application to enter now because you don't create that one of the application.
That is our app logging.
Right.
I hope you already inhabited with all that our files.
So now for our project, before you can see we need some of the media file.
We need some of these static files and also we need the template file.
Right.
So now, first of all, I wanted to create all the essential file which will be needed for our project.
So, you know, social media project folder here around the world to be the new folder.
And I just named it as a static.
So static folder will be needed and also will be needed.
Our another folder as a template.
Right.
That will be as a template folder and also for our images, I will need another one.
So I created the new folder and I name it as a media.
I name it as a media perfect.
And also here we have created all of the applications are fast working our main social file that in
the main social project, that resource.
So here we have to do we have to install it.
Right.
So, you know, install the video, first of all here.
After that, we have to install it.
So I name it as the app app underscore logging.
So that will be our application.
I have already created that we are app logging.
Right.
So I register it.
And after that also we have to do we have to add all that our folder, that means a static folder,
template folder, media folder in our Wayzata.
Right.
So if you want to do that work, you will be just like the same.
I have already discussed about the things we do.
I take one of the variable as a template directly, templates, underscore directly and then into the
templates digital area with our W part we have to add that will be as it was spot.
And then we have to join.
We have to join our Bayes based directory and into the area.
We have to join our templates.
Right, that will be as a template.
So that means that is actually our fault and that will be as a template right now.
So after that, we have to also add our aesthetic and the media.
So for the static and immediately static, they truly underscored the victory.
And then with our OS and then Pop, and we have to join with our base victory.
And here it shall be as a static, that bizarrely static folder.
Right.
And make sure that these are static so that there is static, that static folder.
And now we have to also add our media.
So that will be I take another one as immediately actually media underscore directly.
And then with our OS here, that will be our part.
Our part will be Jayan.
And then here will be as a base base directly into the area around the doing to add our media.
Right.
That will be our media perfect.
So now we have to do we have to add our template that is our tampoe directly in our template area.
And that means that is a our template.
So that will be our template directly.
Right.
So here we have add added and also after that, after that hour, we have to add our media and also
the static.
So that is only static.
You will say here, as I told you before, what exactly you have to do.
Right.
So here after this.
After this, I take it as a static file, a director rewrite.
It will be as a static files underscore directly.
And then this will be our static directorate.
That means this is that exactly right.
And also after that, I don't want to add another one for our media route, which will be as a media
underscore route and for the media route, it will be our media directory media directly.
And then also we need another one of the media.
Warrell media under underscore, you are told and this will be our media.
That means I have already created that folder, other media.
So this will be as a media.
So that's all the essential things.
Friend, I have already discussed about the things we do.
So now we have to do.
We have to update it.
So I updated our.
You are.
That means the media world and the media route and then our static files.
So that is making sure spelling is correct, that it is static and then files and then static projector.
You will be our static directly and then our default one of these static.
And then I have updated our template template directly.
And then also I installed our app Logging and I added all the things in our voice area.
Perfect.
So friend here will create one of the social media project and for the social media project, our app
logging.
That means the full authentication is very much important on the part and also will create another one
for our social.
So I will do the things later.
First of all, I want to complete our default authentication system.
So in our template into the template area, better understand the creation of the folder and I just
name it as an app login.
I just put that same name as an app logging.
OK, so that will be everything.
Our authentication related every as HTML file.
I want to say in particular this folder and also we will need that images.
If for our social media project, we will also use that images.
So if you want to work with these images, I think you already remember it in our project folder.
In Maine project folder.
That is awesome.
You Warrell and the URL area we have to update.
Right, Peter, I it it each file is essential.
First of all, I want to add everything I which I have already discussed about the things we do.
So right now the like here you can see that our default one, that is our default admin part.
And then there is from Django you are to import part.
Right.
And also here on the ground to input another one.
That means here on the include our method, I will be as include.
So I simply added our this method as include method.
And as I told you, if you want to working with the images here, also you have to add some of the settings.
Right.
So that will be from sorry, that will be from and then Django from Django then the config that we need
from here, we have to input the settings.
Right.
It will have to input that settings and also from the Django, from the Django to the country.
So from the Django country.
Then there is a very static file.
Sawtell static So that will be as static files.
And from here there is another one of the equals.
So from that you are allowed to do and the input or the static switch will be added static and also
static.
Is.
Adding value added pattern is still be sorry, it's still very static in static files and static files
and then underscore you are pattern, you are pattern.
So friend, make sure you remember that because of all that is the default everything.
So we have to actually use it appropriate like that way.
So that will be our static files.
And you are a pattern and now we have to do we have to declare it right.
So after that I want to do it will be as equal.
That means that you model patterns and inaudible patterns, which will be as a plastic rule, and then
all the static files, you whatever that means.
This is files you and we have to load.
Right.
So now I load it.
And then again, our world patterns, you are patterns will be our plastic tool with this plastic.
Will you still be this static.
So will be a static.
And then here we have to do we have to add our settings.
So with this setting, I want to use our media, media authority, media, and that it will be our media.
You are all right here.
We have to it.
And then our document route, we have to set the document, underscore route.
Our document will be with our settings, settings and with the setting.
We have to add our media route.
So it should be media and then our media route.
I hope friend is very much clear to you.
So if you want to work with the images.
So this part is very much important.
Right.
So which I have already discussed about the things we do.
So make sure you add it.
And also right now, I have already created one of the application that is our app logging application
and into the app logging application area.
You want to segment all that, your authentication related.
You are in particular this application area.
You can also do that work, right?
So for doing this year, we have to do we have to create one of the EU URLs.
So everything is very much relevant.
Friend, I have already discussed about the things we do here.
I just simply added all that, our essential files.
So it will be as you URLs and then our fight scene, you will find what exactly we have to do.
We have to first of all, from our Django front to the Django, that is all you are ls and from here
we have to import, we have to import as a part I load our part and also from and from our.
And we have to do we have to load our these views.
Right.
So that is in our app logging.
I name it as the app underscore logging.
OK, from our app logging.
I don't want to import, I want to import our views so that with our views, fine.
So that is our views file.
Right.
And here it will be better.
I provide this appropriate this application.
I want to add another app name which I have already declared.
I understand me that the app under its name and for this one I name it as the name will be as an app
logging.
OK, so with the same name Cecil B. as app logging.
And then I wanted one to declare our all that you are on here.
That is all that our URL patterns.
So I want to declare all the three world patterns in particular this right friend.
So here as I told your friend, first of all, I don't want to complete our default authentication system
and for the default authentication system here, what exactly did before?
If you go to that Django official site and here, as I told you before, I want to do want to use our
this class as a user creation form.
So with this user creation from use actually provided that username password one field and another one
as a password to write.
And also here I want to do I want to add another additional feel for the email.
So if you want to add that another additional feel, then you have to do have to create one the form.
Right.
We have to create the custom form.
So I how to do the same things again, like in our app logging here on the turn to create another new
file and I just name it as it forms right.
Form Dot fi and I just name it as a form that fight.
Perfect.
So here what exactly you have to do from first of all you have to load our Django default form.
So friend, I have already make that same work for our block projects right now.
I want to do that things again that will be our form.
Right.
So it will be import our Django default form and then I want to want to use our this class.
That means that is our user creation form plus.
So with this form class we will get some of the specific feel for our sign up position.
Right.
So that will be in our form and then Django and then the country.
So from to the country then the old and then the forms.
Right from the forms here you have to do you have to import our this class as a user creation form.
Right.
And as I told you, with this user creation form will get out of this field so that his username password
and the password to and also here.
And to add another additional field, it shall be as email.
So this email is in our user, right, in our user object area, that is another field as email.
So now, first of all, I also want to want to get our this user that means here from that will be our
from from the Django, sorry, from the Django and then the Cantrip.
So from the Django Cantrip and then the old and then from here the the models from the models founded
on the input our user class.
Right.
That will be our user.
Perfect.
So now to declare war on the custom of the form class.
So I named this class sword and I just name it as a create new user.
OK, so we as a create news around the class and it will be in our this user class that precedes the
creation from right now.
I load that our user creation from.
So with this form, as I told you, we will get some of this because if you feel like there is a name
that that Avatar class in that class will be as a matter because of all I created out of the class into
the class area.
So it will be another as a middle class right.
To the middle class area with this model.
I want to do I want to load our user.
That means our user model.
And then I want to do I want to add all the other fields.
So that will be all that feels I want to do.
And the Lord, our fields name, our field name.
So we thought this user creation form will get some of the specific feel right.
We get some of the specific field, uh, that is actually there.
That is actually the word.
This will mean that username password on password too.
So now I copy it.
That will be as a one one will be as our user name.
Right.
And then there will be as a password, password one and also another will be as a password too.
So it be as a password and that will be as a password to write.
So here you can see there is a clear filename as a password, one as a password two.
So no, I loaded and also for our this sign up, I wanted to add another additional form on that, another
additional form as they made me do the email, I name it as email.
And then with our forms, with our forms, they should be we have to declare our type.
So that will be on the email file type.
I name it as email field.
OK, we'll email feed and I want to make the things as required.
OK, make that things as required will be as a true so I may meet as required will be the true perfect.
So now here also you have to do have to pass this field.
That means our DC Millfield.
So here I want to pass that email field.
So that will be already Millfield.
That means for our create new user that will be our all that field as email field username, password
and password.
Right.
And so we successfully created one of the custom forms for our sign up base.
So that will be actually feels OK, not the feel it should be.
The feels our are is declared at the Forwell email username password and the password to the written
model as a user model so that the user model and that is our user creation form, so that our application
form and that additional I feel I have added as an email.
Great.
So that's all we have to do and all we have to do.
We have to visibly it so that I click on save all.
So if you want to visible it, we have to work right now in our app blocking and the view.
Right.
So better.
And to continue this process in our next video, I will show that things to the live example.
So thanks for watching and I will see you in the next video.