Getting everything ready for you…

Loading courses, problems and your progress. This takes just a moment.

0s

Projects › Intermediate

Notes App with Django

A multi-user notes app with tags, search, pinning and sharing — learn Django the way companies use it.

Level: Intermediate · Time: 1 week · Tech stack: Django, PostgreSQL, HTML/CSS

Features to build

What you will learn

Step-by-step guide

1. Project

django-admin startproject notesite . and python manage.py startapp notes.

2. Models

class Note(models.Model):
    owner = models.ForeignKey(User, on_delete=models.CASCADE, related_name='notes')
    title = models.CharField(max_length=120)
    body = models.TextField(blank=True)
    tags = models.ManyToManyField('Tag', blank=True)
    pinned = models.BooleanField(default=False)
    share_id = models.UUIDField(default=uuid.uuid4, unique=True)
    updated = models.DateTimeField(auto_now=True)
    class Meta: ordering = ['-pinned', '-updated']

3. Only your notes

Every view filters by owner: Note.objects.filter(owner=request.user), and get_object_or_404(Note, pk=pk, owner=request.user).

4. Search

notes.filter(Q(title__icontains=q) | Q(body__icontains=q)) (or PostgreSQL full-text search).

5. Forms and CSRF

Use a ModelForm and {% csrf_token %}. Render Markdown with the markdown package and bleach it.

6. Sharing

/s/<uuid>/ shows a read-only page — no login needed, nothing else exposed.

7. Deploy

Gunicorn + WhiteNoise on Render/Railway with PostgreSQL; DEBUG=False and ALLOWED_HOSTS set.

Level it up

On your resume

Learn on Codify