Re: JavaScript with Dango
I found the link but since I don't really know any JavaScript (I was just kinda wondering if I should start learning it), I just downloaded it and installed it. It should come in handy at some point though. On Sun, Sep 26, 2010 at 8:02 PM, Axel Bock <mr.axel.b...@gmail.com> wrote: > I gotta say this is the kind of answer which usually upsets me for obvious > reasons, although I gotta admit the question surely is not very well > phrased, too :) > > But well. I just discovered dajaxproject.com from another thread - maybe > you could start from there. It seems to be a framework which coupoles Django > with some Ajax libs to some extend, if that's what you want. I only had a > short look and filed it for later. > > http://www.dajaxproject.com/ > > > HTH, > Axel. > > > > 2010/9/26 CrabbyPete <pete.do...@gmail.com> > > Yes. >> >> On Sep 26, 7:48 am, aug dawg <augdaw...@gmail.com> wrote: >> > Does Django work with JavaScript? If so, how can I use JavaScript in my >> > Django projects? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
JavaScript with Dango
Does Django work with JavaScript? If so, how can I use JavaScript in my Django projects? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: The REAL superuser
When I say I manually created a superuser, I used the command 'python manage.py createsuperuser' and created another one. What was that about the auth_user_user_permission table? On Sat, Sep 25, 2010 at 10:42 AM, nyambaa <t.nyamba...@gmail.com> wrote: > Hello Aug dawg, > Your code seems fine. You said: " I even manually created a > superuser". What does it mean?, How did you create super user?, and > check your auth_user_user_permission table in the database. Does it > mapped your user and required permissions. > > good luck! > > On Sep 25, 8:36 pm, aug dawg <augdaw...@gmail.com> wrote: > > Thanks for replying so quickly. > > > > I thought that since I could not find the problem, I'll just paste the > > contents of the files into an email. > > > > # models.py > > > > from django.db import models > > from django.contrib import admin > > from blog import posts > > > > class Posts(models.Model): > > title = models.CharField(max_length=30, verbose_name='Title') > > body = models.TextField(verbose_name='Body') > > def __unicode__(self): > > return self.title > > > > # admin.py > > > > from django.db import models > > from django.contrib import admin > > from blog import posts > > > > class PostsAdmin(admin.ModelAdmin): > > list_display = ('title', 'body') > > > > admin.site.register(Posts, PostsAdmin) > > > > # urls.py > > > > from django.conf.urls.defaults import * > > from django.contrib import admin > > from blog import posts > > > > admin.autodiscover() > > > > urlpatterns = patterns('', > > (r'^admin/', include(admin.site.urls)), > > ) > > > > Thanks! > > > > > > > > On Fri, Sep 24, 2010 at 10:41 PM, Karen Tracey <kmtra...@gmail.com> > wrote: > > > On Fri, Sep 24, 2010 at 6:02 PM, aug dawg <augdaw...@gmail.com> wrote: > > > > >> Hey all, > > > > >> I'm currently learning how to use Django, so earlier this evening I > spent > > >> about 30 minutes working on a blog engine. I used the admin interface > and > > >> ran 'python manage.py syncdb'. I then run the dev server. I log in to > the > > >> admin interface successfully, but then it says I don't have permission > to > > >> edit anything. I even manually created a superuser. Can anyone help me > out? > > > > > Admin says you don't have permission to edit anything regardless of > your > > > superuser status when it there have been no models registered for it to > > > manage. So either there are no admin.py files in any of the > INSTALLED_APPS > > > or (more likely) the admin.autodiscover() call in urls.py has been left > > > commented out (part of the instructions for enabling the admin include > > > uncommenting that line. The admin.autodiscover() call is what ensures > the > > > registrations done in admin.py files in all installed apps are actually > > > executed. > > > > > Karen > > > -- > > >http://tracey.org/kmt/ > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Django users" group. > > > To post to this group, send email to django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > <django-users%2bunsubscr...@google groups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: The REAL superuser
Thanks for replying so quickly. I thought that since I could not find the problem, I'll just paste the contents of the files into an email. # models.py from django.db import models from django.contrib import admin from blog import posts class Posts(models.Model): title = models.CharField(max_length=30, verbose_name='Title') body = models.TextField(verbose_name='Body') def __unicode__(self): return self.title # admin.py from django.db import models from django.contrib import admin from blog import posts class PostsAdmin(admin.ModelAdmin): list_display = ('title', 'body') admin.site.register(Posts, PostsAdmin) # urls.py from django.conf.urls.defaults import * from django.contrib import admin from blog import posts admin.autodiscover() urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), ) Thanks! On Fri, Sep 24, 2010 at 10:41 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Fri, Sep 24, 2010 at 6:02 PM, aug dawg <augdaw...@gmail.com> wrote: > >> Hey all, >> >> I'm currently learning how to use Django, so earlier this evening I spent >> about 30 minutes working on a blog engine. I used the admin interface and >> ran 'python manage.py syncdb'. I then run the dev server. I log in to the >> admin interface successfully, but then it says I don't have permission to >> edit anything. I even manually created a superuser. Can anyone help me out? >> >> > Admin says you don't have permission to edit anything regardless of your > superuser status when it there have been no models registered for it to > manage. So either there are no admin.py files in any of the INSTALLED_APPS > or (more likely) the admin.autodiscover() call in urls.py has been left > commented out (part of the instructions for enabling the admin include > uncommenting that line. The admin.autodiscover() call is what ensures the > registrations done in admin.py files in all installed apps are actually > executed. > > Karen > -- > http://tracey.org/kmt/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
The REAL superuser
Hey all, I'm currently learning how to use Django, so earlier this evening I spent about 30 minutes working on a blog engine. I used the admin interface and ran 'python manage.py syncdb'. I then run the dev server. I log in to the admin interface successfully, but then it says I don't have permission to edit anything. I even manually created a superuser. Can anyone help me out? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.