/r/django
News and links for Django developers.
News and links for Django developers.
New to Django? Check out the /r/djangolearning subreddit.
Django's Code of Conduct applies here, so be good to each other.
/r/django
I am joining to new project as a backend developer and I have one mate as backend developer but with node js and express js how we can make a project with these two stacks without conflicts or errors ?
I can see why Quentin wants to do theatre plays I think he could do a TV series as well Django looks like a live play lol
Hey everyone,
I'm building a real estate platform on Django that will have over 1 million property listings. The data will be pulled from a CRM, but the client also wants the ability to manually add and edit listings, independent of the CRM.
Would Wagtail be a good choice for managing both content and real estate listings? Or would it be better to use Wagtail for pages and blog, while handling listings separately in a custom-built admin panel?
If anyone has experience building large-scale real estate platforms in Django, I’d love to hear your thoughts! What’s the best way to keep the system scalable, maintainable, and easy for non-tech users to manage?
Thanks in advance!
Currently building my first ever saas with django and raw html,css etc
I’m doing it for fun/learning - i’m not a web dev in my day job but in an adjacent engineering role.
Are you using Docker? Just running the django server on a VPS and exposing? Do you use cloudflare?
There are so many different options, i’m just looking for the most optimal
hi. i need your advice... i have been learning django for a few months now. i knew the basics of python and someone recommended django so i dived into it. i am following a tutorial right now and i think i know the basics(CRUD, urls, templates, forms, users, admin, etc.) and know the path ahead of me. but suddenly i am feeling stressed, am i gonna find a job with it? i searched the web and i couldnt find jobs that only want django and now im in doubt and dont even know if i should continue down this path. what will happen when i finished the tutorial (try django 3.2 - cfe). so, what are the odds that i can make a living with django? should i learn other things alongside? if yes, what and when and how. i am getting demotivated by the very few jobs that i found online... i am very open to do freelancing and also can only work remotely as i live in Iran and cant travel abroad for a job untill i get really good at it and can be sure that i can make a living with my skills
Hey Django Devs,
A few months ago, I introduced Timely, a simple yet powerful notebook web app built with Django. Since then, I’ve been working on updates, optimizations, and improvements based on feedback from the community.
Now, I’m excited to announce that Timely is open for contributions! 🎉
✅ Open Source & Improved Codebase – You can now contribute to Timely on GitHub!
✅ Refactored UI & Performance Optimizations – Faster loading times and smoother experience.
✅ Contributing Guidelines Added – Clear steps to help improve Timely.
✅ Better Documentation – README, License, Changes and Contribution guide updated.
If you’re interested in Django and want to contribute:
- Fork the repo & explore the code
- Check out the issues and submit PRs
- Suggest new features or optimizations
I’d love to hear your thoughts, feedback, and suggestions!
I've been trying to get Pydantic AI running under Django. It's a pet project so far so I'm only using `runserver`. The first error I got what that the event loop wasn't running.
> RuntimeError: There is no current event loop in thread 'Thread-1 (process_request_thread)'.
I did a bit of reading and started splashing "async def" on my views and other functions in the stack. I also started using the async ORM verisons (e.g acreate instead of create). Then I changed how I was calling the Pydantic AI Agent (await agent.run instead of calling agent.run_sync) and this worked.
I'm wondering if there are other ways I could fix the issue. Specifically, I'd want to avoid splashing async all over the place now if possible. I used a run_sync method from Pydantic AI to keep things simple. It complicates things for me. Any thoughts/ideas?
I am legit blown away. I've been using Cursor lately and I don't think I can go back anymore. Especially when it comes to fullstack development. For those of you not using AI to level up your development I would highly recommend starting.
backstory - I wanted to add a public playground section for my application which included a backend, frontend, and some internal integrations with my existing stuff and about 30 new files and 8k new lines of code later its working just how I want. The best part is it took me 1 day and just prompted the entire thing. Didn't write one bit of html for it. I've been in software engineering for 8 years so I've seen trends come and go but at this point I'm 100% sold on this.
This thing handles django templates with htmx so unbelievably well that I'm convinced anyone can build something very impactful in very little time.
Here's a video of the whole thing https://app.arcade.software/share/4BHHh6THSWxGWCzRBwTd
I wanted
To share with you all that this combo, whatever new acronym people end up calling it, is awesome. Big win for the SSR community.
Should I live code a session or something to show people how I've been using AI in my development flows? I put the poll on my x post but if I get >50 I'll do one. I guess on discord or something?
Hello everyone!
A few days ago, I ran into an issue while working on one of my projects—a university course selection system. The problem was how to change the placement of inline models.
By default, Django places them at the bottom of the page, but I wanted to position them wherever I needed.
After extensive searching and using AI tools, I couldn’t find a solution. So, I decided to figure it out myself—and finally, I found the answer!
I talked about it in detail on my YouTube channel and shared the final solution in a tutorial.
Hope you find it helpful!
Watch the video here :
So, I’m using tailwindcss on a django project with node to be able to configure it in a clean and custom way, however, if I use for example django-crispy-forms, or otherwise use the python logic to insert the css classes on a form field, How can I get the tailwind to scan those files too?
Hey I'm soon done with my first Django app and I'm wondering where should I deploy it?
Is there something similar to Laravel forge - I'm not really in the mood for making a pipeline myself.
Or what other services approaches would you recommend?
Thanks in advance
Can anyone checkout and review my video player SDK. It has ad support and used Django in the backend. Trying to compete directly with video.js
I want to make an application which includes functionality like code editor and related things. I have worked with Django web & rest framework both. I want to make this application using Django rest framework for the backend but I don't know or don't want to use any frontend framework. I was thinking that I will render my templates using TemplateHTMLRenderer. Is this a standard approach? Please suggest me alternate approaches if not.
In this post, we’re setting up Login & Logout functionality, building forms, and using Django authentication & CSRF tokens.
In the last blog, we built a Django template.
Give it a read and let me know your thoughts in the comments! 💬 Your feedback helps me make these guides even better! 😊
What I mean is, in my requirements.txt I have everything fixed, same in the dockerfile as well. Is there a good process to follow, for example, start with dockerfile, if it still builds and all tests pass, then start upgrading each module? But then you get into dependency hell, where a new module is not compatible with an old one, so you have to upgrade the lot? Do you do that and then see what happens?
I'm transitioning from the JavaScript world and planning a new app with Django. I need admin users to frequently insert content using a CMS like Wagtail. The app will include several marketing pages, an e-commerce checkout, and a delivery system for digital content. What’s the best way to structure this with Wagtail?
Hi all, i’m new to django and I have a few questions! What have you done as a workaround of DRF not being async? Are you using django-ninja instead? I’m just having a hard time understanding how people are creating saas with drf as the backend when it isnt async.. thanks in advance!
Hi everyone, I need some help. I followed Better Stack's guide on YouTube, but I'm getting this error:
PermissionError: [Errno 13] Permission denied: '/app/static/admin'
STATIC_URL = 'static/' STATIC_ROOT = BASE_DIR / "static"
Dockerfile
# Stage 1: Base build stage
FROM python:3.13-slim AS builder
# Create the app directory
RUN mkdir /app
# Set the working directory
WORKDIR /app
# Set environment variables to optimize Python
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install dependencies first for caching benefit
RUN pip install --upgrade pip
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Stage 2: Production stage
FROM python:3.13-slim
RUN useradd -m -r appuser && \
mkdir /app && \
chown -R appuser /app
# Copy the Python dependencies from the builder stage
COPY --from=builder /usr/local/lib/python3.13/site-packages/ /usr/local/lib/python3.13/site-packages/
COPY --from=builder /usr/local/bin/ /usr/local/bin/
# Set the working directory
WORKDIR /app
# Copy application code
COPY --chown=appuser:appuser . .
# Set environment variables to optimize Python
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Switch to non-root user
USER appuser
# Expose the application port
EXPOSE 8000
# Make entry file executable
RUN chmod +x /app/entrypoint.prod.sh
# Start the application using Gunicorn
CMD ["/app/entrypoint.prod.sh"]
Hello Everyone. I am building an ecommerce application for an actual business. My techstack currently is Django + Sqlite + Htmx/Alpine.js. I want to understand if the ecommerce will be working good & smooth enough on a 1Cpu/2 Gb Memory VPS ???
And if possible can I run postgres too in it ?
(the business expecting hardly 100-200 visitors daily on the site currently.)
I've been studying Django for a while and managed to grasp the basics. I've worked through tutorials, built a few simple apps, and I understand the core concepts like models, views,template and etc. However, I've hit a bit of a wall. Now that I'm past the initial learning phase, I'm feeling overwhelmed and unsure of what to do next. There are SO many topics to explore, from advanced ORM techniques, to REST framework integration, and it's hard to know where to focus my energy.
More than just the sheer volume of information, I'm struggling to connect the dots. I understand the individual components, but I'm not entirely clear on how they fit together in larger, real-world projects. I'd love to get involved in some open-source contributions or group projects, but I'm not sure where to start or how to find opportunities that align with my current skill level. The jump from following tutorials to contributing meaningfully feels huge, and I'm lacking the practical experience to bridge that gap.
I would be incredibly grateful for some guidance from an experienced Django developer. A mentor who could help me navigate, suggest learning paths, and offer advice on getting involved in projects would be invaluable. I'm eager to learn and contribute, but I need a little help finding my way.
I've became comfortable digging through documentation and conducting my own research for technical stuff but occasional technical help would be highly appreciated also.
I'm new in IT field. I am currently learning Django from youtube. I want to grab a intern, so I need some projects to show and clear my concepts. What sort of projects shall I do?
I have seen django saelor, it is great but i want something which also gives ready made templates with that so that i dont have to do all the heavy work of the frontend also. I dont mind customizing the frontend a little bit but i am curious is there any library in django which will aid me in this ?
Hey,
Share the kind of Django projects you worked on, whether they're personal projects or office projects. It would help people.