# pythonpro2 **Repository Path**: lvguangjiegitpython/pythonpro2 ## Basic Information - **Project Name**: pythonpro2 - **Description**: 2021.3.11nihao - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-11 - **Last Updated**: 2026-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Learning Log A web application for learning notes based on the Django framework, allowing users to record and organize learning content. ## Features - **Topic Management**: Create and manage learning topics (Topic) - **Entry Logging**: Add multiple learning entries (Entry) for each topic - **User Authentication**: Full user registration, login, and logout functionality - **Data Editing**: Support for editing and deleting learning entries - **Responsive Interface**: Clean and intuitive user interface ## Technology Stack - Python 3.x - Django 3.1.7 - SQLite database ## Project Structure ``` learning_log/ ├── learning_log/ # Django project configuration │ ├── settings.py # Project settings │ ├── urls.py # Main URL routing │ ├── wsgi.py # WSGI configuration │ └── asgi.py # ASGI configuration ├── learning_logs/ # Learning notes application │ ├── models.py # Data models │ ├── views.py # View functions │ ├── forms.py # Form definitions │ ├── urls.py # Application URL routing │ ├── admin.py # Admin configuration │ └── templates/ # HTML templates │ ├── base.html │ ├── index.html │ ├── topics.html │ ├── topic.html │ ├── new_topic.html │ ├── new_entry.html │ └── edit_entry.html └── db.sqlite3 # SQLite database ``` ## Installation Guide 1. **Navigate to the project directory**: ```bash cd learning_log ``` 2. **Activate the virtual environment**: ```bash ll_env\Scripts\activate # Windows source ll_env/bin/activate # Linux/Mac ``` 3. **Run migrations**: ```bash python manage.py migrate ``` 4. **Create a superuser (optional)**: ```bash python manage.py createsuperuser ``` 5. **Start the development server**: ```bash python manage.py runserver ``` 6. **Access the application**: - Main app: http://127.0.0.1:8000/ - Admin panel: http://127.0.0.1:8000/admin/ ## Usage Instructions 1. Visit the homepage and click Register or Login 2. After logging in, create new learning topics 3. Click on a topic to view its details and add learning entries 4. Edit or delete existing entries as needed ## Main Views | View | URL | Description | |------|-----|-------------| | index | `/` | Homepage | | topics | `/topics/` | List of topics | | topic | `/topics//` | Topic details | | new_topic | `/new_topic/` | Create a new topic | | new_entry | `/new_entry//` | Add a new entry | | edit_entry | `/edit_entry//` | Edit an existing entry | ## Data Models - **Topic**: A learning topic, containing a title and date - **Entry**: A learning note, containing content, a link to a topic, and a date ## License MIT License