Learning Log App Project in Django with Source Code

Learning Log App Project in Django with Source Code

This Learning Log App Project in Django is a Web Application that provides students or working staff with an integrated user interface to add learning logs. Students may add as many entries as they want and monitor all learning logs in each individual learning log. This project also includes an admin panel from which you can monitor all the registered users, logs, and entries.

To start creating a Learning Log App Project in Django, makes sure that you have PyCharm Professional IDE Installed in your computer.

This Learning Log App Project in Django also includes a Download Source Code for free, just find the downloadable source code below and click download now.

About ProjectProject DetailsDefinition
Project Name Learning Log App Project in DjangoThe Learning Log App Project in Django is created using Python Django Framework. The system is built fully in Django Framework in back-end and HTML, CSS and JavaScript in front-end. Basically, the project includes tutorials and guides for creating a code.
Python version (Recommended)3.8 VersionPython 3.8 introduces some new syntax to the language, as well as a few small modifications to existing behavior and, most importantly, a slew of performance improvements, following in the footsteps of the previous 3.7 version.
Programming Language UsedPython Django LanguageDjango is a high-level Python web framework for building safe and maintainable websites quickly. Django is a web framework built by experienced developers that takes care of a lot of the heavy lifting so you can focus on developing your app instead of reinventing the wheel.
Developer Name itsourcecode.comFree projects containing source code in Java, PHP, Python, Django, VB.Net, Visual Basic, C, C++, C#, Javascript, and other languages are available on this website.
IDE Tool (Recommended)Sublime, Visual Studio, PyCharmSublime Text is a source code editor that is available for purchase. It comes with built-in support for a variety of programming and markup languages. Plugins, which are often community-built and maintained under free-software licenses, allow users to extend the functionality of the system. Sublime Text has a Python API to help with plugins.
Project Type Web ApplicationA web application, unlike computer-based software programs that operate locally on the device’s operating system, is application software that runs on a web server. The user uses a web browser with an active network connection to access web apps.
DatabaseSQLiteSQLite is a programming language that is used to create embedded software for devices such as televisions, cell phones, and cameras. It can handle HTTP requests with low to medium traffic. SQLite has the ability to compress files into smaller bundles with less metadata. SQLite is a temporary dataset that is used within an application to process data.
Learning Log App Project in Django Overview

Features of Learning Log App Project in Django

  • Homepage – For the homepage, you will be able to all the basic access in the whole system. Such as topics, registration and login.
  • Topics– For the topics, you will be able to add new topics as many as you want and you can also edit the topics.
  • Registration – For the registration, you will fill the forms. Such as your username and password.
  • Login – For the login, you must login first before you can add a new topic.

Steps on how to create a Learning Log App Project in Django With Source Code

Learning Log App Project in Django With Source Code

  • Step 1: Open file.

    First , open “pycharm professional” after that click “file” and click “new project“.
    Creating New Project for Learning Log App Project in Django with Source Code

  • Step 2: Choose Django

    Second, after click “new project“, choose “Django” and click.
    Choosing django for Creating New Project for Learning Log App Project in Django with Source Code

  • Step 3: Select file location.

    Third, select a file location wherever you want.
    Creating a location for Learning Log App Project in Django with Source Code

  • Step 4: Create application name.

    Fourth, name your application.
    Creating application name for Learning Log App Project in Django with Source Code

  • Step 5: Click create.

    Fifth, finish creating project by clicking “create” button.
    Finish Creating Project for Learning Log App Project in Django with Source Code

  • Step 6: Start Coding.

    In this final step, we will now start adding functionality to our Django Framework by adding some functional codes.

This are the module to add functionality for Learning Log App Project in Django

  • Create template for the homepage in Learning Log App Project in Django.

In this section, we will learn on how create a templates for the homepage. To start with, add the following code in your base.html under the folder of learning_logs/template/learning_logs files.

{% load bootstrap3 %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Learning Log Application</title>

    {% bootstrap_css %}
    {% bootstrap_javascript %}

</head>

<body style="background-color: skyblue">
    <!-- Static navbar -->

    <nav class="navbar navbar-default navbar-static-top" style="background-color: black">
        <div class="container">
            <div class="navbar-header" >
                <button type="button" class="navbar-toggle collapsed"
                        data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar"></button>
                <a class="navbar-brand" href="{% url 'learning_logs:index' %}">
                    Learning Log Application
                </a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="{% url 'learning_logs:topics' %}">Topics</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    {% if user.is_authenticated %}
                    <li><a>Hello, {{ user.username }}.</a></li>
                    <li><a href="{% url 'users:logout' %}">Log out</a></li>
                    {% else %}
                    <li><a href="{% url 'users:register' %}">Register</a></li>
                    <li><a href="{% url 'users:login' %}">Log in</a></li>
                    {% endif %}
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </nav>

    <div class="container">

        <div class="page-header">
            {% block header %}{% endblock header %}
        </div>
        <div>
            {% block content %}{% endblock content %}
        </div>

    </div> <!-- /container -->

</body>

</html>

After adding the code, you may click the run button to test the code. The output should look like as shown below.

  • Create template for the registration page in Learning Log App Project in Django.

In this section, we will learn on how create a templates for the registration form. To start with, add the following code in your user_registration.html under the folder of users/templates/users files.

{% extends "learning_logs/base.html" %}
{% block content %}
<form method="post" action="{% url 'users:register' %}">
    {% csrf_token %}
    {{ form.as_p }}
    <button name="submit" class="btn btn-success">Register</button>
    <input type="hidden" name="next" value="{% url 'learning_logs:index' %}" />
</form>
{% endblock content %}

After adding the code, you may click the run button to test the code. The output should look like as shown below.

  • Create template for the login form in Learning Log App Project in Django.

In this section, we will learn on how create a templates for the login form. To start with, add the following code in your user_login.html under the folder of users/templates/users files.

{% extends "learning_logs/base.html" %}
{% block content %}
 {% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>  {% endif %}
<form method="post" action="{% url 'users:login' %}">
    {% csrf_token %}
    {{ form.as_p }}
    <button name="submit" class="btn btn-success">Log in</button>
    <input type="hidden" name="next" value="{% url 'learning_logs:index' %}" />
</form>     
   {% endblock content %}
  • After adding the code, you may click the run button to test the code. The output should look like as shown below.

Create template for the add topics in Learning Log App Project in Django.

In this section, we will learn on how create a templates for the add topics form. To start with, add the following code in your add_new_topic.html under the folder of learning_logs/template/learning_logs files.

{% extends "learning_logs/base.html" %}

{% load bootstrap3 %}

{% block header %}
<h2>Add a new topic:</h2>
{% endblock header %}

{% block content %}

<form action="{% url 'learning_logs:new_topic' %}" method='post' class="form">
    {% csrf_token %}

    {% bootstrap_form form %}

    {% buttons %}
    <button name="submit" class="btn btn-success">Add Topic</button>
    {% endbuttons %}
</form>

{% endblock content %}

After adding the code, you may click the run button to test the code. The output should look like as shown below.

  • Create template for the edit topic form in Learning Log App Project in Django.

In this section, we will learn on how create a templates for the edit topics form. To start with, add the following code in your add_new_topic.html under the folder of learning_logs/template/learning_logs files.

{% extends "learning_logs/base.html" %}

{% load bootstrap3 %}

{% block header %}
<h2>Edit entry:</h2>
{% endblock header %}

{% block content %}

<h3>
    <a href="{% url 'learning_logs:topic' topic.id %}">{{ topic }}</a></p>
</h3>

<form action="{% url 'learning_logs:edit_entry' entry.id %}" method='post' class="form">
    {% csrf_token %}

    {% bootstrap_form form%}

    {% buttons%}
    <button name='submit' class="btn btn-success">Save Changes</button>
    {% endbuttons %}
</form>

{% endblock content %}

After adding the code, you may click the run button to test the code. The output should look like as shown below.

Downloadable Source Code Below.

Anyway, if you want to level up your programming knowledge, especially python, try this new article I’ve made for you Best Python Projects with source code for Beginners. But If you’re going to focus on web development using Django, you can download here from our list of Best Django Projects with source code based on real-world projects.

How To Run The Learning Log App Project in Django with Source Code?

Step 1: Extract/unzip the file
Step 2: Go inside the project folder, open cmd and type the following commands to install Django Framework and run the webserver:
• pip install -r requirements.txt
• python manage.py runserver
Step 3: Finally, open the browser and go to http://127.0.0.1:8000/

For admin panel:

  • Username: admin
  • Password: admin

Summary

In summary, this 2022 Learning Log App Project in Django with Source Code can be useful to students or professional who wants to learn python programming language. This project can also be modified to fit your personal requirements. Hope this project will help you to improve your skills. Happy Coding!

Inquiries

If you have any questions or suggestions about Learning Log App Project in Django with Source Code, please feel free to leave a comment below.

Leave a Comment