Trying to keep upload filename from disappearing - with python 2.7.1/django 1.2.4

2011-06-10 Thread djangobeginner
I'm new to django and python but I'm working on a new screen for a project I'm on. The screen is supposed to capture a bunch of text information as well as allow a user to browse and select a file on their local machine for uploading. I'm having a problem with the filename disappearing from the sel

Splitting date and time from Models

2010-11-28 Thread djangobeginner
Hi, suppose I have the models.py: SHORT_DATE_FORMAT = "%d - %b - %y" DATE_FORMAT= "%Y-%m-%d" TIME_FORMAT= "%H:%M" class Job(models.Model): job_id = models.AutoField(primary_key=True) job_title = models.CharField(max_length=50, verbose_name = "Title") job_desc = models.CharField(max_le

populating model values into form

2010-11-27 Thread djangobeginner
Hi, Im a beginner here, would just like to ask how to pass and populate model values (from database) into a created form, I have the following codes 1. I already have a webpage list of all the values in a table form 2. If I click on any of the row with primary key id (example: clicking edit link),