Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 97863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:05:10+00:00 2026-05-11T00:05:10+00:00

I like Django, but for a particular application I would like to use only

  • 0

I like Django, but for a particular application I would like to use only parts of it, but I’m not familiar enough with how Django works on the inside, so maybe someone can point me into the right direction as to what I have to check out.

Specifically, I want to use:

  • The models and database abstraction
  • The caching API, although I want to avoid database lookups by caching, not HTML generation, and since the caching framework in Django is intended for the latter, I’m not sure yet whether that’s really appropriate.

I would not use:

  • Templating
  • urlconfigs

Or, more exactly, I’m neither using HTTP nor HTML. So basically, I have a different input / output chain than usual.

Can this work?

My personal killer feature in Django is the Object / database mapping that I can do with the models, so if there’s another technology (doesn’t have to be Python, I’m in the design phase and I’m pretty agnostic about languages and platforms) that gives me the same abilities, that would be great, too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:05:11+00:00Added an answer on May 11, 2026 at 12:05 am

    I myself use Django for its object/db mapping without using its urlconfigs. Simply create a file called djangosettings.py and insert the necessary configuration, for example:

    DATABASE_ENGINE   = 'oracle' DATABASE_HOST     = 'localhost' DATABASE_NAME     = 'ORCL' DATABASE_USER     = 'scott'  DATABASE_PASSWORD = 'tiger' 

    Then in your regular Python code, do

    import os os.environ['DJANGO_SETTINGS_MODULE'] = 'djangosettings' 

    before you import any Django modules. This will let you use Django’s object/db mappings without actually having a Django project, so you can use it for standalone scripts or other web applications or whatever you want.

    As for caching, if you don’t want to use Django then you should probably decide what you are using and go from there. I recommend using CherryPy, which doesn’t use Django-style regular expression URL mapping, but instead automatically maps URLs to functions based on the function names. There’s an example right at the top of the CherryPy home page: http://cherrypy.org/

    CherryPy has its own caching system, so you can accomplish exactly the same thing as what Django does but without needing to use Django’s urlconfig system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to love Django, but this business of static and media files in
I would like to output the following using django templates: Manhattan, NY, USA with
My django model looks like this: class Entity(models.Model): name = models.CharField(max_length=40) examples = models.ManyToManyField(Example,
I'm using the generic CreateView like: #urls.py from django.conf.urls.defaults import * from django.views.generic import
I've started using django-taggit and it seems to fit the bill. But for me
I have been trying to get xapian working django haystack for a project im
I was looking for an algorithm for sorting an array in a custom way
Is there a site that has a pre-configured all-in-one LAMP image ready to download
I'm creating a DeleteView which needs to access to kwargs outside of the methods,
I need to develop a new site with the e-commerce part. I'm here to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.