Hi have you added your app in django settings
Eg. settings.py in project root
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.co
Have you uncommented the url pattern that activates the admin site?
On 9/9/12, TJ Max wrote:
> Please tell us what your urls.py is
>
> On Sat, Sep 8, 2012 at 6:02 PM, David Perez
> wrote:
>
>> Hi,
>>
>> I am new to Django, I am actually starting its tutorial. On part 2 it
>> enables the admin sit
Timothy - I am implementing something similar (Model GUI.png attached) that
is within a larger structure that not only generates models.py, but
registers them to the admin, builds the modelforms, and generates JS logic
etc.
Rather than such a thing being useful for developers I have found it gr
Also, I saw on your github that you are looking for choices support.
Just to give my insight I have implemented the attached for adding choices.
It is ajax via a modal that pre-populates existing options and allows for
creation and deletion of options for that field on the fly.
JD
On Sunday,
with attachment.
On Sunday, September 9, 2012 8:46:10 AM UTC-6, jondykeman wrote:
>
> Also, I saw on your github that you are looking for choices support.
>
> Just to give my insight I have implemented the attached for adding choices.
>
> It is ajax via a modal that pre-populates existing opt
On 09/08/2012 09:02 PM, David Perez wrote:
If I remember correctly I did not get prompt to create a superuser
when I wrote /python manage.py syncdb/, so I am not sure if I do not
have a superuser.
You can check your user table manually:
> python manage.py dbshell
mysql> select * from
Hi! It's my first time trying to achieve the ''file upload functionality'
and I need your help. I'm working on a legacy db and I'm supposed to do the
file upload in a table that gets created this way:
CREATE TABLE "LICENCE"
("ID" NUMBER NOT NULL ENABLE,
"VEH_ID" NUMBER NOT NULL
Hi,
recently, I ve been strugling with django (having a good time) and
meanwhile, I tried to find and use a grid.
I found dhtmlx thx to django-users forum.
Now, I think best approah will be structering grid using xml output.
Below u will find what kind xml, dhtmlx needs.
dhtmlgrid needs a xml o
I install it and then in the terminal when I type python -c "import django;
print(django.get_version())"
it says
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named django
shayan-afridis-imac:~ prankster284$
Please let me know what I'm doing wrong. Thanks in
hi
how are you doing it ...?
have gone to the djangoproject website ... ?
On Sep 9, 2012 7:19 PM, "djangohelp" wrote:
> I install it and then in the terminal when I type python -c "import
> django; print(django.get_version())"
>
>
> it says
>
> Traceback (most recent call last):
> File "", li
Hey- I went here.
https://docs.djangoproject.com/en/dev/intro/tutorial01/
And downloaded this one: https://www.djangoproject.com/download/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@google
I'm assuming you are using the forms.ModelForm for your model? Say
LicenceForm?
class LicenseForm(forms.ModelForm):
class Meta:
model = License
According to the doc you have to pass all relevant QueryDicts to the form
__init__
when you are creating a bound instance. In a nutshell make
On Sun, Sep 9, 2012 at 2:18 PM, djangohelp wrote:
> I install it and then in the terminal when I type python -c "import django;
> print(django.get_version())"
>
>
> it says
>
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No module named django
> shayan-afridis-imac:~
Yes, exactly I'm using a modelform and in my views I'm doing:
def upload(request):
if "doc-form" in request.POST:
docform = LicenceForm(data=request.POST, files=request.FILES)
if docform.is_valid():
docform.save()
return render_to_response('bingo.html',
Also, don't forget the multi-part in your template:
On Sun, Sep 9, 2012 at 2:29 PM, Joseph Mutumi wrote:
> I'm assuming you are using the forms.ModelForm for your model? Say
> LicenceForm?
>
> class LicenseForm(forms.ModelForm):
> class Meta:
> model = License
>
> According to the d
I have a fairly simple django project having some views, templates and
static files like css and images. My settings file include :
STATIC_ROOT = '/home/karambir/Codes/projects/cdi/cdi/static'
STATIC_URL = '/static/'
STATICFILES_DIRS = (
'/home/karambir/Codes/projects/cdi/cdi/data',
)
TEMPL
Interesting. I'm doing it on my PC now, and still getting the same problem.
Then I saw your email:
Here's what I get when I print sys.path. (django's not there)
>>> print sys.path
['', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs',
'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win'
The question is, is django inside one of those directories? It should
probably be installed to C:\Python27\lib\site-packages so there would be a
C:\Python27\lib\site-packages\django directory. Is it there?
On Sun, Sep 9, 2012 at 3:41 PM, Shayan Afridi wrote:
> Interesting. I'm doing it on my PC n
There is a django.pth there and a README
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
I can't speak authoritatively on this, since that's not how it installs in
Linux, but in my understanding the contents of the django.pth file should
be the directory django has been installed to. Check the contents of that
file to see if everything is in order.
An alternative to this is to update P
I suppose that your frontend webserver is serving files from url /static/
from path that STATIC_ROOT points to?
On Sun, Sep 9, 2012 at 10:23 PM, Karambir Singh Nain wrote:
> I have a fairly simple django project having some views, templates and
> static files like css and images. My settings fil
Also just a note, if you're using manage.py runserver without debug = TRUE
setting, static file serving is not taking place. you can use --insecure
option to mark that you really want to do staticfile serving still from
django.
https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#django-
On Sun, Sep 9, 2012 at 3:41 PM, Shayan Afridi
wrote:
> Interesting. I'm doing it on my PC now, and still getting the same problem.
>
> Then I saw your email:
>
> Here's what I get when I print sys.path. (django's not there)
>
print sys.path
> ['', 'C:\\Windows\\system32\\python27.zip', 'C:\\P
Hi all, I'm sorry- my last django question was all over the place. I hope
it is reasonable to you if I recap. Thank you!
Hi, and thanks for reading. Eventually, I want to be able to complete this
project:
https://docs.djangoproject.com/en/dev/intro/tutorial01/# (Writing your
first Django applicati
@Dennis Lee Bieber, I jumped back to my Mac, sorry- I am being a real
bother but I appreciate the help insanely.
Hopefully the help will be of aid in the Mac process, too.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
Okay, I just realized I don't/didn't need to type sudo in. Got it.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+un
It works! Thank you all so much. It feels great to know that there is a
very responsive and helpful support system for django users. Thanks again!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@
Glad to here you got it working, and please let us know if you have any
other questions.
On Sun, Sep 9, 2012 at 5:52 PM, Shayan Afridi wrote:
> It works! Thank you all so much. It feels great to know that there is a
> very responsive and helpful support system for django users. Thanks again!
>
>
Hi everyone! First time posting to this group!
I have a model Class where each row has a unique alphanumeric ID string
like 'EX39H'.
This is the function I use to generate the code.
def gen_class_code():
import string
import random
size = 5
max_size = 16
attempts = 1000
chars = stri
Do you need this identifier to be so short? If that's not a problem, why
don't you use something tried and that's proven that will succeed: GUIDS
(or UUIDs).
http://en.wikipedia.org/wiki/Globally_unique_identifier
http://docs.python.org/library/uuid.html
On Sun, Sep 9, 2012 at 8:10 PM, Anton Pop
Yes it needs to be short. This will be an invitation string most likely
written on a chalk board for kids.
Also there was an error in my initial post : I forgot to increment size +=
1 inside the while loop. Noticed right after posting.
thanks
On Monday, September 10, 2012 1:27:37 AM UTC+2, geo
Nothing is up yet - we have just been using internally where I work. It
came up because we were getting too much work and couldn't find the
programmers. A model (and other things) GUI really helped with getting
other staff to be able to effectively contribute to app development, and
left us to
If you could open source it I would appreciate it.
> Do you have a way of setting which fields will be associated with which of
> the models? I am moving onto this aspect next and was thinking of maybe
> doing draggable divs in a list to make it more interactive.
I don't understand this. Could yo
It might only come up in the context of my work, but we do a lot of data
collection, and so when using the GUI all of the variables we create as
destined to be part a of specific modelform. As such, we way want to end up
with two forms (eg. Baseline, Purchase History) each of which will be
repr
Hi Everyone,
I was hoping to get some input on how other people deal with complicated
permission situations. I have banged my head against these concepts I think
I need some fresh eyes.
- User accounts can create and manage their own content.
- Users that are part of the same company can view
Hi,
Try like this if you are using ubuntu
~$ python
Python 2.7.3 (default, Apr 20 2012, 22:44:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.get_version()
'1.3.1'
or
>>> django.VERSION
(1, 3, 1, 'final', 0)
>>>
Not
Hi Singh,
I have configured static file for my projects as follows.
In settings.py
import os
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
MEDIA_URL = '/site_media/'
STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://m
I have worked through the Django tutorial parts 1 and 2 with an Oracle back
end using the development server. Everything worked fine. I now want to use
a real server - Apache + mod_wsgi. I've got to the point where I get an
"Improperly Configured at /" page, which shows the following:
Exception
>
>
> I think you should use a properly modified autocomplete solution.
> https://code.djangoproject.com/wiki/AutoCompleteSolutions
>
Could you suggest what is the easiest of them to implement. I have been
trying autocomplete_light but the documentation is not very clear. It
assumes the user
Just an edit to my original post: ... but this does *not* resolve my
problem. Sorry for any confusion.
On Monday, September 10, 2012 2:41:00 PM UTC+10, Jon Blake wrote:
>
> I have worked through the Django tutorial parts 1 and 2 with an Oracle
> back end using the development server. Everything
Hi David, you might have stumbled over a problem I had when I first tried
out the tutorial a week ago. I'm using an Oracle database back end, and on
my first try of python manage.py syncdb, I also missed the prompt to create
a superuser account. The problem was finally identified as a missing
p
41 matches
Mail list logo