django with no relational db?

85 views
Skip to first unread message

devash

unread,
Jan 21, 2014, 9:56:49 PM1/21/14
to django...@googlegroups.com

 I am building an app with no relational DB. All data will be in flat files now and nosql dbs in future.

 I plan to use django-tastypie for rest api and mostly pure python from rest api code to connect to file system and non relational backend python api. I do not plan to use Django ORM.

 I will have web pages, d3.js, authenticated users and sessions.

 1) Is it even possible to use Django without relational DB?

 I noticed many of Django's core app like auth and session depend on having relational DB. Am i correct?

 2) Does it even make sense to use Django here? Is Django appropriate technology/framework to use here? or any other python alternatives I should look at?

Alex Mandel

unread,
Jan 22, 2014, 12:45:31 AM1/22/14
to django...@googlegroups.com
Just use sqlite, that gets rid of any complication/overhead of running a
service based db, and will cover auth stuff. Django really isn't meant
to run from flat files (there is a cheat using django flatpages) but
that's so you can edit through the web.

But yes this might be more than you need and you could look at
Pyramid/Pylons which less stuff to begin with.

Enjoy,
Alex

graeme

unread,
Jan 22, 2014, 3:05:34 AM1/22/14
to django...@googlegroups.com
You do lose a lot without a relational DB: model forms, auth, admin. I think sessions should work as long as you do not use the DB backend.

You could try django-nonrel: http://django-nonrel.org/ I have never tried it myself but from the documentation it seems to keep a lot more of the functionality of Django than just using Django without a relational DB.

There are plenty of other Python frameworks. Flask is worth a look.

You may get a better answer if we knew why you are using the file system and nosql. 

Rafael E. Ferrero

unread,
Jan 22, 2014, 6:07:48 AM1/22/14
to django...@googlegroups.com
Are you tried nikola? maybe works for you... its for flatpages. Also you can find his author on pyar google groups

See you

Saludos Cordiales,
--
Rafael E. Ferrero


2014/1/22 graeme <graeme....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/85bd3a1b-41bc-40ce-954d-cb33060de572%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Tim Chase

unread,
Jan 22, 2014, 6:20:55 AM1/22/14
to django...@googlegroups.com
On 2014-01-22 09:07, Rafael E. Ferrero wrote:
>> I will have web pages, d3.js, authenticated users and sessions.
>
> Are you tried nikola <http://getnikola.com/>? maybe works for
> you... its for flatpages.

While I will say that I love a lot of things about Nikola, it doesn't
meet the OP's requirement for authenticated users and sessions.

However, if the OP only needs those for commenting purposes, Nikola
does allow you to outsource those to an external service like Disqus
(several are supported). But if the auth/sessions run more deeply in
the requirements, Nikola won't likely do.

-tkc



Reply all
Reply to author
Forward
0 new messages