Reset userdata at a specific time without refreshing

2013-02-10 Thread Jak
Hello, I am creating an app that keeps track of how many classes a person attends a month. Basically a person gets 10 classes a month, and each time they come to a class I deduct a class from their total. On the 1st of each month at 12:01am I want the class packs to reset. I've created some co

DjangoSEO framework.....seo_mymetadatamodelinstance._content_type_id may not be NULL

2012-08-11 Thread Jak
d anything. Any ideas? Thanks! Jak -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/DDFrllY0yC4J. To post to this group, send email to django-us

Re: Getting images to appear in html using Django.

2012-07-09 Thread Jak
I figured it out. I put the Media folder on the same level as a the mysite folder and now it seems to work. I think it was a django noob error. MEDIA_ROOT ='/Users/Jak/projects/fap/media/' MEDIA_URL = '/media/' TEMPLATE_DIRS = ( '/Users/Jak/projects/fap/mysit

Re: Getting images to appear in html using Django.

2012-07-08 Thread Jak
ponse ('index.html', context_instance=RequestContext(request)) But it's still not working. Thanks again! On Jul 8, 5:26 pm, Jak wrote: > Hello All, > > I am new to Django and I'm trying to create a simple website. I am > trying to get an jpg to appear in the base

Getting images to appear in html using Django.

2012-07-08 Thread Jak
Hello All, I am new to Django and I'm trying to create a simple website. I am trying to get an jpg to appear in the base template but I cant get it to show up. In setting.py MEDIA_ROOT = '/Users/Jak/projects/fap/mysite/media', MEDIA_URL = '/media/

CSS not appearing in production mode.

2012-06-17 Thread Jak
Hello All, I am having a difficult time getting the CSS for my web app to appear when I turn debug mode to false. When debug mode = True all the images show up fine, but when I turn it to false only the html appears. What do you think could be happening? Thanks Jak -- You received this

Re: Django/Python Circular model reference

2012-06-01 Thread Jak
t; > > > > Define it in one and back reference it in the other > > > Kevin > > Please excuse brevity, sent from phone > > On Jun 1, 2012 12:38 PM, "Jak" wrote: > > >> The problem that I'm having is that the model "Question" is not

Re: Django/Python Circular model reference

2012-06-01 Thread Jak
The problem that I'm having is that the model "Question" is not defined since I am referencing it after I use it in the Answer model. Thanks Jak On Jun 1, 12:08 pm, Javier Guerra Giraldez wrote: > On Fri, Jun 1, 2012 at 10:42 AM, Jak wrote: > > Each answer has

Django/Python Circular model reference

2012-06-01 Thread Jak
Hi all, I am trying to create two django models that reference each other. 1 model is a question and the other model is an answer. Each answer has a question, and each question has an answer. I cant seem to get it to work without error. Below is the code. from django.db import models cl

Cant get spatialite and pysqlite working

2012-03-28 Thread Jak
We have a Django aplication which depends on Spatialite and Pysqlite. It works well for testing under Ubuntu, but when we try to install it on the server, we are getting the following error after installing PySqlite. We did set it up with define=OMIT_SQLITE_LOAD_EXTENSION commented out: django.core

Hosting tutorials

2012-03-28 Thread Jak
Hello All, I am new to programming, and I have spent the year learning HTML, CSS, Python, and now Django. I can build a basic dynamic site on the development server, but I have no idea how to share this site with the world. The Django deployment section in the Django book is difficult to understan