7
12 Comments

Indie Hackers using django: How did you build your blog?

hello everyone,

I am building a new tool and I want to add blog section to it. I tried using Django-cms, mezzanine but they all don't work for me.

what I want is to add blog to my existing project.
thanks in advance.

on November 6, 2019
  1. 1

    I buy two domains, example.app and example.com. I always set up my blog at example.com. The actual SaaS/webapp recides in example.app/dashboard and people sign up at example.app/signup. The dotCom site is for marketing, the .app is for the app sides of things. I turn off Google indexing for example.app just in case, they don't collide in organic search.

    1. 1

      Yeah we do this too but we use subdomains, e.g.

      Each subdomain is its own app with its own stack. It is not hard to manage at all in our experience, in fact you get the liberty to mix and match what you need for each part of the experience.

      1. 1

        This is how I do it too.

        I used to try to build the blog using django, it was taking too much time and I was lacking a lot of plugins that wordpress have, so I would have to buy them myself.

        Then I tried to do the app in domain.com/app and the rest of the domain for the wordpress site, this was pretty hard as I would have to setup nginx/apache for 2 different things and then also keep php up to date and so on.

        Later I've decided that the best way is using a subdomain, now I even host them in 2 different places if I want to, no need for a server for your blog if you don't get a lot of traffic.

    2. 1

      yes thanks. But i think it's hard to manage right?

      1. 1

        Why would it be? Later down the road you can get a marketing guy who can work on the main site and you can work on the backend. It makes things a lot simpler than trying to host your own Django CMS. The redirects that need to be done and all the extra sitemap libraries. Nah. I'll use Wordpress or Jekyll on example.com and Django on example.app

        1. 1

          I will definitely try it.
          thanks a lot.

  2. 1

    Wagtail is fantastic, you can find the docs for integrating it into an existing project here: https://docs.wagtail.io/en/v2.0/getting_started/integrating_into_django.html

    Alternatively, you could use a static site generator to build a blog & host it at /blog. It would be completely separate from your django project - you would just need to configure your web server (e.g. nginx) to serve static blog files at that url. (If you do this, you might need to tell the static site that it is not being served from "/" - for example: in Jekyll you would set the baseurl option - https://jekyllrb.com/docs/configuration/options/#serve-command-options)

    1. 1

      thanks, I just integrate wagtail and it works.

  3. 1

    I found it very difficult to add a blog to Django if you didn't plan to do it before.

    I recommend splitting the Django app and marketing site if you can. That way you can create a new Django project to host the blog, or use a tool like Ghost to do that.

    We plan on adding blogs to https://versoly.com/ in the near future as we know how much of a pain it is to set up a blog quickly.

    1. 1

      thanks, volkandkaya.

      What I want to know now is how can I separate the blog with the app side.
      for example, the user is going to click blog from the app side is the URL going to redirect or what.

      1. 2

        You would just put the app on say app.example.com and have the marketing site at https://example.com

        That way when you want to make changes to the marketing site you don't need to update the app and vice-versa.

        That is what most big companies are doing.

        The only reason you wouldn't do that is if you have public user generated content that google would rank really well.

        But if you did that you most likely wouldn't need a blog :)

  4. 2

    This comment was deleted 6 years ago