Re: Languages problem

2009-03-24 Thread Muslu Yüksektepe
i want you try without

*> >def save(self):
> >if not self.pk:
> >self.secid = slugify(self.title).replace("-**", "_")
> >if MainCategory.objects.filter(**secid = self.secid):
> >super(MainCategory, self).save()
> >self.secid = "%s__%s" %(self.secid, self.pk)
> >return super(MainCategory, self).save()*

delete this code and try again

2009/3/24 alexarsh 

>
> Hi,
>
> No, I don't have any errors. I just get my title empty.
>
> Regards, Alex A.
>
> On Mar 24, 3:56 pm, Muslu Yüksektepe 
> wrote:
> > if u have a error pls write all error code.
> >
> > 2009/3/24 knight 
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > I have the following class in my models.py:
> >
> > > class MainCategory(models.Model):
> > >title = models.CharField(max_length=50)
> > >value = models.DecimalField(default=0, max_digits=5,
> > > decimal_places=3)
> > >secid = models.SlugField(max_length=1000, editable=False)
> > >def save(self):
> > >if not self.pk:
> > >self.secid = slugify(self.title).replace("-", "_")
> > >if MainCategory.objects.filter(secid = self.secid):
> > >super(MainCategory, self).save()
> > >self.secid = "%s__%s" %(self.secid, self.pk)
> > >return super(MainCategory, self).save()
> > >def __unicode__(self):
> > >return self.title
> >
> > > I have the following problem:
> > > If I create new object with title on Russian or Arabic or any other
> > > language, I see it in admin with the empty string instead of it's
> > > title.
> > > My database is postgres and its utf-8.
> > > I guess it's something to do with unicode but I can't understand what
> > > exactly.
> > > Do you have any ideas?
> >
> > > Thanks, Arshavski Alexander.
> >
> > --
> > Muslu YÜKSEKTEPE
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Languages problem

2009-03-24 Thread Muslu Yüksektepe
if u have a error pls write all error code.

2009/3/24 knight 

>
> Hi,
>
> I have the following class in my models.py:
>
> class MainCategory(models.Model):
>title = models.CharField(max_length=50)
>value = models.DecimalField(default=0, max_digits=5,
> decimal_places=3)
>secid = models.SlugField(max_length=1000, editable=False)
>def save(self):
>if not self.pk:
>self.secid = slugify(self.title).replace("-", "_")
>if MainCategory.objects.filter(secid = self.secid):
>super(MainCategory, self).save()
>self.secid = "%s__%s" %(self.secid, self.pk)
>return super(MainCategory, self).save()
>def __unicode__(self):
>return self.title
>
> I have the following problem:
> If I create new object with title on Russian or Arabic or any other
> language, I see it in admin with the empty string instead of it's
> title.
> My database is postgres and its utf-8.
> I guess it's something to do with unicode but I can't understand what
> exactly.
> Do you have any ideas?
>
> Thanks, Arshavski Alexander.
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: [Newbie] Problem with startproject

2009-03-23 Thread Muslu Yüksektepe
i think you didnt setup full django.  try again.

or try this.

python
import django
django.VERSION (this is must)

and you will see django's version number if u did really full setup.


2009/3/21 André Santos 

>
> Try this:
> python -c "import django"
> If it returns one error, than django wasnt installed correctly.
>
> 2009/3/21 Alnain :
> >
> > Hi!
> >
> > I'm new in Django, and I have a little problem with the starting. I
> > tried to create a new project, using django-admin.py startproject
> > mysite, but it raises an error: "ImportError: no module named
> > django.core". I know that it means that there isn't a required file,
> > but I don't konw why it isn't. Do I have installed Django incorrectly?
> >
> > Thanks
> >
> > PD: I'm spanish, sorry my poor english ^^u
> >
> > >
> >
>
>
>
> --
> André Santos
> Graduando em Ciência da Computação - UFRJ
>
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django-cms error "VariableDoesNotExist: Failed lookup for key [page] in u"

2009-03-21 Thread Muslu Yüksektepe

i am trying to django-cms. i have a model photoalbum when i link this
url it says error

Caught an exception while rendering: Failed lookup for key [page] in
u"[{}, {}, {}, {}, {}, {'son_fotoalbumler': []}]"

99   {% cms_subpages page as subpages %}
100 {% if subpages %}
101 {% trans "sub pages" %}
102 
103 {% for subpage in subpages %}
{{ subpage.title|escape }}{% endfor %}
104 
105 {% endif %}
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Category / Subcategory / Product

2009-03-10 Thread Muslu Yüksektepe
okey thanks for everything. i made it now.

www.yuksektepe.com

i use it in "videolar" its okey now.

2009/3/10 Alex Gaynor 

>
>
> On Tue, Mar 10, 2009 at 4:17 AM, Muslu Yüksektepe <
> musluyuksekt...@gmail.com> wrote:
>
>> thanks your answer. i tryed 3 models but i dont know how can i use codes
>> in templates.
>>
>> i setuped mptt but i dont understand anything
>> oops
>>
>> 2009/3/10 Malcolm Tredinnick 
>>
>>
>>> On Tue, 2009-03-10 at 01:12 -0700, Muslu Yüksektepe wrote:
>>> > Hi guys;
>>> > I am preparing one project with Django. i need to make one
>>> > application. it must be categories.
>>> > Like:
>>> >
>>> > Category1
>>> > ...Subcategory1
>>> > ..Video1
>>> > ..Video2
>>> > ...Subcategory2
>>> > ..Video3
>>> > ..Video4
>>> >
>>> > Category2
>>> > ...Subcategory3
>>> > ..Video5
>>> > ..Video6
>>> > ...Subcategory4
>>> > ..Video7
>>> > ..Video8
>>> >
>>> > i wanna use it for videos category and other things.
>>>
>>> If you only need three levels and they need to be called "category"
>>> "subcategory" and "product", for example, then create three models that
>>> link to each other with ForeignKey fields.
>>>
>>> More likely, though, you are looking for a nested type of structure that
>>> can have many levels. A tree, in models. There are at least two good
>>> existing applications to look at in this space: django-mptt and
>>> django-treebeard (both of them are on Google code and are the first hits
>>> if you search for their respective names).
>>>
>>> The django-mptt project contains some template tags to help display the
>>> data in templates. django-treebeard does not, from memory, although
>>> writing your own is not difficult.
>>>
>>> Regards,
>>> Malcolm
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Muslu YÜKSEKTEPE
>>
>>
>>
>>
>>
> The idea of djanog-mptt is to have an N level high tree, that is you only
> need one category model that has a foreign key to it's parent.  It's docs
> have some example I believe.
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
>
>
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Category / Subcategory / Product

2009-03-10 Thread Muslu Yüksektepe
thanks your answer. i tryed 3 models but i dont know how can i use codes in
templates.

i setuped mptt but i dont understand anything
oops

2009/3/10 Malcolm Tredinnick 

>
> On Tue, 2009-03-10 at 01:12 -0700, Muslu Yüksektepe wrote:
> > Hi guys;
> > I am preparing one project with Django. i need to make one
> > application. it must be categories.
> > Like:
> >
> > Category1
> > ...Subcategory1
> > ..Video1
> > ..Video2
> > ...Subcategory2
> > ..Video3
> > ..Video4
> >
> > Category2
> > ...Subcategory3
> > ..Video5
> > ..Video6
> > ...Subcategory4
> > ..Video7
> > ..Video8
> >
> > i wanna use it for videos category and other things.
>
> If you only need three levels and they need to be called "category"
> "subcategory" and "product", for example, then create three models that
> link to each other with ForeignKey fields.
>
> More likely, though, you are looking for a nested type of structure that
> can have many levels. A tree, in models. There are at least two good
> existing applications to look at in this space: django-mptt and
> django-treebeard (both of them are on Google code and are the first hits
> if you search for their respective names).
>
> The django-mptt project contains some template tags to help display the
> data in templates. django-treebeard does not, from memory, although
> writing your own is not difficult.
>
> Regards,
> Malcolm
>
>
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Category / Subcategory / Product

2009-03-10 Thread Muslu Yüksektepe

Hi guys;
I am preparing one project with Django. i need to make one
application. it must be categories.
Like:

Category1
...Subcategory1
..Video1
..Video2
...Subcategory2
..Video3
..Video4

Category2
...Subcategory3
..Video5
..Video6
...Subcategory4
..Video7
..Video8

i wanna use it for videos category and other things.
i can make category and video but i need subcategories too.
and can you tell me use in templates too

i am waiting your helps.

thanks...

Django 1.0.2 Python 2.5.2 Ubuntu 8.04 (or WindowsXP)
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: translating app name ... again

2009-03-06 Thread Muslu Yüksektepe
i dont understand..
do u wanna mean your app name?
if u wanna tell about your app name in admin panel

i think u can use

*USE_I18N = True

in settings.py*

 and

   * class Meta:
verbose_name_plural = "Your App Name"

in models.py*


try it and write me answer please

2009/3/4 patrickk 

>
> so far, it doesn´t seem possible to translate the app-names within the
> admin-interface, which results in a strange index-site with mixed
> languages.
>
> any updates on this issue? any ideas?
>
> thanks,
> patrick
>
>
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Muslu Yüksektepe
 # Uncomment the next line to enable the admin:
>17  (r'^admin/(.*)', admin.site.root),
>18  (r'^media/(?P.*)$', 'django.views.static.serve',
> {'document_root': settings.MEDIA_ROOT }),
>19  (r'^static/(?P.*)$',
> 'django.views.static.serve',{'document_root': settings.STATIC_ROOT }),
>20  (r'^', include('wikinotes.wikinote.urls')),
>21  )
>
>
> i...@debian:[~/apps/wikinotes/wikinote] cat -n urls.py
> 1  # vim: ai ts=4 sts=4 et sw=4
> 2
> 3  from django.conf.urls.defaults import *
> 4  from wikinotes.wikinote.models import WikiNote
> 5  wikinotes = WikiNote.objects.all()
> 6
> 7  urlpatterns = patterns ('',
> 8  (r'^wikinotes$','wikinotes.wikinote.views.login_page'),
> 9
>
> (r'^view$','django.views.generic.list_detail.object_list',dict(queryset=wikinotes)),
>10
>
> (r'^note/(?P[-\w]+)/update/$','wikinotes.wikinote.views.update_note'),
>11
>
> (r'^note/(?P[-\w]+)/delete/$','wikinotes.wikinote.views.delete_note'),
>
>12  (r'^login/$','wikinotes.wikinote.views.process_login'),
>13  (r'^logout/$','wikinotes.wikinote.views.process_logout'),
>14  (r'^create/$','wikinotes.wikinote.views.create_note'),
>15  (r'^newnote/$','wikinotes.wikinote.views.create_new_note',
> dict({})),
>16  #
> (r'^create/(?P[-\w]+)/$','wikinote.views.create_note',
> dict(queryset=wikinotes, slug_field="slug")),
>17
>
> (r'^note/(?P[-\w]+)/$','django.views.generic.list_detail.object_detail',dict(queryset=wikinotes,
> slug_field="slug") ),
>18  );
>19
>
> Could someone give any pointer as to what is going wrong here? Please
> let me know if more stuffs are needed.
>
> Cheers,
> Ishwor
>
> [1]
>
> http://lethain.com/entry/2008/sep/21/intro-to-unintrusive-javascript-with-django/
>



-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Problems rendering HTML stored in database.

2009-03-06 Thread Muslu Yüksektepe
i think u can use markdown

{{ html_text|markup }}
or
{{ html_text|textile }}

try this



2009/3/6 nils 

>
> Im running django-1.0.2-final with the django.contrib.admin in my
> application.
> It's a blog-like application so i implemented tiny-mce (wysiwyg-
> editor) in the admin interface.
> It saves/deletes/updates as supposed, but the view+template does not
> render the HTML-tags, the HTML-tags renders as plain text.
>
> Any one know why?
>
>
> >
>


-- 
Muslu YÜKSEKTEPE

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Generic foreignKey model: Category

2009-02-16 Thread Muslu Yüksektepe

hi guys;
i wrote this codes. but how can i use in template

like first choose
company
   category
   product



On 12 Şubat, 19:13, danfreak  wrote:
> Right, I created my Genric Category model using :
>
> -
> from django.db import models
> from django.contrib.auth.models import User
> from django.contrib.contenttypes.models import ContentType
> from django.contrib.contenttypes import generic
> from django import forms
>
> class CategoryItem(models.Model):
>     """A tag on an item."""
>     name = models.CharField(max_length=200)
>     content_type = models.ForeignKey(ContentType)
>     object_id = models.PositiveIntegerField()
>     content_object = generic.GenericForeignKey()
>
>     def __unicode__(self):
>         return self.name
>
> -
>
> And it works fine in admin.
>
> But how can I create a selectin admin that filters all categories
> associated to Product for example?
>
> -
> # Create your models here.
> class Company(models.Model):
>     name = models.CharField(max_length=200)
>     users = models.ForeignKey(User)
>     def __unicode__(self):
>             return self.name
>
> class Product(models.Model):
>     name = models.CharField(max_length=200)
>     description = models.TextField()
>     users = models.ForeignKey(User)
>     company = models.ForeignKey(Company)
>     category = generic.GenericRelation(CategoryItem)
>     def __unicode__(self):
>             return self.name
> -
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django için yeterli Türkçe kaynak bulunamadığı için bazı kaynak örnekleri alıntı yaparak bir sunum yapmayı düşündüm.

2009-02-14 Thread Muslu Yüksektepe

http://groups.google.com.tr/group/django-turkiye
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django için yeterli Türkçe kaynak bulunamadığı için bazı kaynak örnekleri alıntı yaparak bir sunum yapmayı düşündüm.

2009-02-14 Thread Muslu Yüksektepe

Django nedir?

Django için yeterli Türkçe kaynak bulunamadığı için bazı kaynak
örnekleri alıntı yaparak bir sunum yapmayı düşündüm.

Django nedir? Neler yapabiliriz? Bize sağladığı yararlar nelerdir?
Nasıl ayar yapmamız gerekiyor?

Bu sorulara cevap bulabilmek için 1 aydır çalışmaktayım ve
deneyimlerimi anlaşılır bir dilde anlatacağım.







Muslu YÜKSEKTEPE
14/02/2009 tarihinde Ubuntu İşletim Sistemi üzerinde Open Office.org
Write ile hazırlanmıştır.

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Error loading sqlite3 module

2009-02-13 Thread Muslu Yüksektepe
try to setup sqlite3
or check your models.py for* _sqlite* item

2009/2/13 Sandeep 

>
> I just installed Python 2.6.1 and Django 1.0.2 on Windows.
>
> I am new to Python and Django and am following the tutorial for
> Django.
>
> Per tutorial, I am setting the 'DATABASE_ENGINE' to sqlite3 in
> settings.py file. However, I get the following error when I run
> 'python manage.py synchdb':
>
> django.core.exceptions.ImproperlyConfigured: Error loading sqlite3
> module: No module named _sqlite3
>
> Complete error is below. I will greatly appreciate help.
>
> $ python manage.py  syncdb
> Traceback (most recent call last):
>  File "manage.py", line 11, in 
>execute_manager(settings)
>  File "/usr/lib/python2.5/site-packages/django/core/management/
> __init__.py", line 340, in execute_manager
>utility.execute()
>  File "/usr/lib/python2.5/site-packages/django/core/management/
> __init__.py", line 295, in execute
>self.fetch_command(subcommand).run_from_argv(self.argv)
>  File "/usr/lib/python2.5/site-packages/django/core/management/
> base.py", line 192, in run_from_argv
>self.execute(*args, **options.__dict__)
>  File "/usr/lib/python2.5/site-packages/django/core/management/
> base.py", line 218, in execute
>self.validate()
>  File "/usr/lib/python2.5/site-packages/django/core/management/
> base.py", line 246, in validate
>num_errors = get_validation_errors(s, app)
>  File "/usr/lib/python2.5/site-packages/django/core/management/
> validation.py", line 22, in get_validation_errors
>from django.db import models, connection
>  File "/usr/lib/python2.5/site-packages/django/db/__init__.py", line
> 16, in 
>backend = __import__('%s%s.base' % (_import_path,
> settings.DATABASE_ENGINE), {}, {}, [''])
>  File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/
> base.py", line 27, in 
>raise ImproperlyConfigured, "Error loading %s module: %s" %
> (module, exc)
> django.core.exceptions.ImproperlyConfigured: Error loading sqlite3
> module: No module named _sqlite3
>
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
hi again

i added codes but i dont see anything on template
i sent my views where do i change

2009/2/6 Alex Gaynor 

>
>
> On Fri, Feb 6, 2009 at 8:52 AM, Muslu Yüksektepe <
> musluyuksekt...@gmail.com> wrote:
>
>> ok i am telling you again
>> i wrote photo album
>> i add title and photos.
>> i need show my titles like this
>>
>> a1
>> a2
>> a3
>> a4
>> b2
>> b3
>> b4
>> b5
>> b6
>> c1
>> c2
>> c3
>> c4
>> c5
>> c6
>>
>> and
>>
>> i wanna use letter like this
>> a b c d e f g 
>>
>> when i click "a" it have to show only
>> a1
>> a2
>> a3
>> a4
>> or click "b"
>> b2
>> b3
>> b4
>> b5
>> b6
>>
>> later i wanna choose titles.
>> i hope i can understand
>> example: http://www.utexas.edu/world/univ/alpha
>>
>>
>> 2009/2/6 Alex Gaynor 
>>
>>>
>>>
>>> On Fri, Feb 6, 2009 at 8:33 AM, Muslu Yüksektepe <
>>> musluyuksekt...@gmail.com> wrote:
>>>
>>>> my model:
>>>> #-*- coding: utf-8-*-
>>>> from django.db import models
>>>> from django.contrib import admin
>>>> import re
>>>> import os,sys
>>>> from datetime import datetime
>>>> from sorl.thumbnail.fields import ImageWithThumbnailsField
>>>> #
>>>> class Fotoalbum(models.Model):
>>>> baslik = models.CharField(max_length=100,verbose_name="Başlık",
>>>> help_text='Max: 100 Karakter')
>>>> slug = models.SlugField(max_length=300,verbose_name="Otomatik Link",
>>>> help_text='Max: 300 Karakter')
>>>> tarih = models.DateTimeField(verbose_name="Yayın Tarihi",
>>>> default=datetime.now)
>>>> guncelleme = models.DateTimeField(auto_now=True)
>>>> etiketler = models.CharField(max_length=100, help_text='Max: 100
>>>> Karakter')
>>>> image1 = ImageWithThumbnailsField(blank=True,
>>>> upload_to='fotoalbum/%Y/%m/%d', thumbnail={'size': (150,
>>>> 150)},verbose_name="1. Resim")
>>>> image1aciklama =
>>>> models.CharField(max_length=200,blank=True,verbose_name="Açıklama",
>>>> help_text='Max: 200 Karakter')
>>>> image1sil = models.BooleanField(verbose_name="Sil", help_text="
>>>> Dosyayı sistemden silmez sadece veritabanından siler.")
>>>>
>>>> def save(self):
>>>> if self.image1sil:
>>>> self.image1 = ""
>>>> self.image1aciklama = ""
>>>> self.image1sil = False
>>>> super(Fotoalbum, self).save()
>>>>
>>>> def get_tag_list(self):
>>>> return re.split(" ", self.tags)
>>>>
>>>> def __unicode__(self):
>>>> return self.baslik
>>>>
>>>> my django version is 1.0.2
>>>> python 2.5.2
>>>> i added codes but nothing changed
>>>>
>>>> 2009/2/6 Alex Gaynor 
>>>>
>>>>>
>>>>>
>>>>> On Fri, Feb 6, 2009 at 7:39 AM, Muslu Yüksektepe <
>>>>> musluyuksekt...@gmail.com> wrote:
>>>>>
>>>>>> i tryed but it doesnt work.
>>>>>>
>>>>>> 2009/2/5 Muslu Yüksektepe 
>>>>>>
>>>>>> thanx i will try tomorrow.
>>>>>>> i hope it will be ok
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> You need to provide more information than simply it doesn't work, try
>>>>> dpasting a traceback.
>>>>>
>>>>>
>>>>> Alex
>>>>>
>>>>> --
>>>>> "I disapprove of what you say, but I will defend to the death your
>>>>> right to say it." --Voltaire
>>>>> "The people's good is the highest law."--Cicero
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> What do you mean nothing changed?  Does the view throw an exception, does
>>> it not do what you want?  You aren't providing very much information.
>>>
>>>
>>> Alex
>>>
>>> --
>>> "I disapprove of what you say, but I will defend to the death your right
>>> to say it." --Voltaire
>>> "The people's good is the highest law."--Cicero
>>>
>>>
>>>
>>
>>
>>
> The view I suggested does just this, you said there was some problem with
> that, but you haven't said what that problem is.
>
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
ok i am telling you again
i wrote photo album
i add title and photos.
i need show my titles like this

a1
a2
a3
a4
b2
b3
b4
b5
b6
c1
c2
c3
c4
c5
c6

and

i wanna use letter like this
a b c d e f g 

when i click "a" it have to show only
a1
a2
a3
a4
or click "b"
b2
b3
b4
b5
b6

later i wanna choose titles.
i hope i can understand
example: http://www.utexas.edu/world/univ/alpha


2009/2/6 Alex Gaynor 

>
>
> On Fri, Feb 6, 2009 at 8:33 AM, Muslu Yüksektepe <
> musluyuksekt...@gmail.com> wrote:
>
>> my model:
>> #-*- coding: utf-8-*-
>> from django.db import models
>> from django.contrib import admin
>> import re
>> import os,sys
>> from datetime import datetime
>> from sorl.thumbnail.fields import ImageWithThumbnailsField
>> #
>> class Fotoalbum(models.Model):
>> baslik = models.CharField(max_length=100,verbose_name="Başlık",
>> help_text='Max: 100 Karakter')
>> slug = models.SlugField(max_length=300,verbose_name="Otomatik Link",
>> help_text='Max: 300 Karakter')
>> tarih = models.DateTimeField(verbose_name="Yayın Tarihi",
>> default=datetime.now)
>> guncelleme = models.DateTimeField(auto_now=True)
>> etiketler = models.CharField(max_length=100, help_text='Max: 100
>> Karakter')
>> image1 = ImageWithThumbnailsField(blank=True,
>> upload_to='fotoalbum/%Y/%m/%d', thumbnail={'size': (150,
>> 150)},verbose_name="1. Resim")
>> image1aciklama =
>> models.CharField(max_length=200,blank=True,verbose_name="Açıklama",
>> help_text='Max: 200 Karakter')
>> image1sil = models.BooleanField(verbose_name="Sil", help_text="
>> Dosyayı sistemden silmez sadece veritabanından siler.")
>>
>> def save(self):
>> if self.image1sil:
>> self.image1 = ""
>> self.image1aciklama = ""
>> self.image1sil = False
>> super(Fotoalbum, self).save()
>>
>>     def get_tag_list(self):
>> return re.split(" ", self.tags)
>>
>> def __unicode__(self):
>> return self.baslik
>>
>> my django version is 1.0.2
>> python 2.5.2
>> i added codes but nothing changed
>>
>> 2009/2/6 Alex Gaynor 
>>
>>>
>>>
>>> On Fri, Feb 6, 2009 at 7:39 AM, Muslu Yüksektepe <
>>> musluyuksekt...@gmail.com> wrote:
>>>
>>>> i tryed but it doesnt work.
>>>>
>>>> 2009/2/5 Muslu Yüksektepe 
>>>>
>>>> thanx i will try tomorrow.
>>>>> i hope it will be ok
>>>>>
>>>>
>>>>
>>>>
>>>>
>>> You need to provide more information than simply it doesn't work, try
>>> dpasting a traceback.
>>>
>>>
>>> Alex
>>>
>>> --
>>> "I disapprove of what you say, but I will defend to the death your right
>>> to say it." --Voltaire
>>> "The people's good is the highest law."--Cicero
>>>
>>>
>>>
>>
>>
>>
> What do you mean nothing changed?  Does the view throw an exception, does
> it not do what you want?  You aren't providing very much information.
>
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
my model:
#-*- coding: utf-8-*-
from django.db import models
from django.contrib import admin
import re
import os,sys
from datetime import datetime
from sorl.thumbnail.fields import ImageWithThumbnailsField
#
class Fotoalbum(models.Model):
baslik = models.CharField(max_length=100,verbose_name="Başlık",
help_text='Max: 100 Karakter')
slug = models.SlugField(max_length=300,verbose_name="Otomatik Link",
help_text='Max: 300 Karakter')
tarih = models.DateTimeField(verbose_name="Yayın Tarihi",
default=datetime.now)
guncelleme = models.DateTimeField(auto_now=True)
etiketler = models.CharField(max_length=100, help_text='Max: 100
Karakter')
image1 = ImageWithThumbnailsField(blank=True,
upload_to='fotoalbum/%Y/%m/%d', thumbnail={'size': (150,
150)},verbose_name="1. Resim")
image1aciklama =
models.CharField(max_length=200,blank=True,verbose_name="Açıklama",
help_text='Max: 200 Karakter')
image1sil = models.BooleanField(verbose_name="Sil", help_text=" Dosyayı
sistemden silmez sadece veritabanından siler.")

def save(self):
if self.image1sil:
self.image1 = ""
self.image1aciklama = ""
self.image1sil = False
super(Fotoalbum, self).save()

def get_tag_list(self):
return re.split(" ", self.tags)

def __unicode__(self):
return self.baslik

my django version is 1.0.2
python 2.5.2
i added codes but nothing changed

2009/2/6 Alex Gaynor 

>
>
> On Fri, Feb 6, 2009 at 7:39 AM, Muslu Yüksektepe <
> musluyuksekt...@gmail.com> wrote:
>
>> i tryed but it doesnt work.
>>
>> 2009/2/5 Muslu Yüksektepe 
>>
>> thanx i will try tomorrow.
>>> i hope it will be ok
>>>
>>
>>
>>
>>
> You need to provide more information than simply it doesn't work, try
> dpasting a traceback.
>
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-06 Thread Muslu Yüksektepe
i tryed but it doesnt work.

2009/2/5 Muslu Yüksektepe 

> thanx i will try tomorrow.
> i hope it will be ok
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-05 Thread Muslu Yüksektepe
thanx i will try tomorrow.
i hope it will be ok

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-05 Thread Muslu Yüksektepe

can u give me one example?

i dont understand


On 5 Şubat, 16:35, Alex Gaynor  wrote:
> On Thu, Feb 5, 2009 at 7:20 AM, Muslu Yüksektepe
> wrote:
>
>
>
> > @Rama:
> > where can i add this code?
>
> > and i wanna use like this.
>
> > my items:
> > -
> > aa
> > aaa
> > 
> > a
> > bb
> > bbb
> > b
> > ccc
> > cc
> > cc
> > --
> > my list:
> > a b c d e f g h
>
> > when i click "a" i wanna show only
>
> > aa
> > aaa
> > 
> > a
>
> > this items
>
> > even i can write manually cos i wanna use turkish character too
> > like ç ş ğ ü ı ö ç
> > but not important
>
> > 2009/2/5 Masklinn 
>
> >> On 5 févr. 09, at 11:40, Rama Vadakattu 
> >> wrote:
> >> > k = [chr(i)  for i in range(97,123)]
>
> >> Why do you manually recreate something already provided to you in the
> >> 'string' module?
>
> Basically you're going to want a view that takes the letter as a parameter
> and then filters down the queryset based on the letter, take a look at the
> __startswith filter.
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how can i create alphabetic list

2009-02-05 Thread Muslu Yüksektepe
@Rama:
where can i add this code?

and i wanna use like this.

my items:
-
aa
aaa

a
bb
bbb
b
ccc
cc
cc
--
my list:
a b c d e f g h

when i click "a" i wanna show only

aa
aaa

a

this items

even i can write manually cos i wanna use turkish character too
like ç ş ğ ü ı ö ç
but not important



2009/2/5 Masklinn 

>
> On 5 févr. 09, at 11:40, Rama Vadakattu 
> wrote:
> > k = [chr(i)  for i in range(97,123)]
> >
> >>
> >>
> Why do you manually recreate something already provided to you in the
> 'string' module?
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



how can i create alphabetic list

2009-02-05 Thread Muslu Yüksektepe

hi;
i need to use a-z list for my photo album. i wanna use link for all
items.

like
a b c d e f g h ...
when i click "a" i wanna show all items star a character

thnx
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: mptt usage

2009-02-03 Thread Muslu Yüksektepe
i did try it too but i deleted.


2009/2/3 new_user 

>
> Hi, everyone.
>
> Recently I've installed mptt app on my project. But I cannot find out
> how to use it. Should I use it's functions manually, or could I use
> admin interface to order my models in tree structure?
>
> Thx in advance.
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



i need help about comments.

2009-01-31 Thread Muslu Yüksektepe

hi guys;

i am preparing to blog and i need help about comments. i am using
v1.0.2.

who can tell me how can i add comments on html?
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: building a blog site

2009-01-30 Thread Muslu Yüksektepe
i deleted my blog site. i am preparing new blog. its not only blog site. it
have wiki, blog, category, sub category, photo album and full cms.
i will show u as soon as. i have to configure a server.
i am using mod_python, apache, filebrowser, tinymce
please wait me
thank you from Turkey

2009/1/30 jazz 

>
> Hi Muslu
>
> how can i can it yuor website to english. I dont uderstad that
> language.
>
> On Jan 19, 11:20 pm, "Muslu Yüksektepe" 
> wrote:
> > i am preparing a blog site.
> > check outwww.yuksektepe.com
> > i will add how can make blog as soon as
> > thank you
> > from Turkiye
> >
> > 2009/1/19 joti chand 
> >
> >
> >
> > > anyone knows is there any blog site development example in django
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: howto view thumbnails on webpage generated by {% thumbnail ...%}?

2009-01-23 Thread Muslu Yüksektepe
i think u have to add this code

 urls.py

DIRNAME = os.path.dirname(__file__)
(r'^photos/(.*)$', 'django.views.static.serve', {'document_root':
os.path.join(DIRNAME, "photos")}),



pls answer me if your code will ok

2009/1/23 nmr 

2009/1/23 nmr 

>
> Hi.
>
> I'm having problem to view my thumbnails. I'm using sorl for thumbnail
> creation and uploading:
>
> model.py:
>
> class Photo(models.Model):
>text=models.TextField(max_length=50)
>photo=ImageWithThumbnailsField(upload_to='photos/',thumbnail=
> {'size': (50, 50)})
>
>def __unicode__(self):
>return self.text
>class Admin:
>pass
>
> template photo.html:
>
> {% extends "base.html" %}
> {% block right %}
> {% load thumbnail %}
>  Photos that will come... Still under construction!
> 
> {% endblock %}
>
> urls.py:
>
> urlpatterns = patterns('',
> (r'^admin/(.*)', admin.site.root),
> (r'^', include('server.music.urls')),
>
> )
>
> if settings.DEBUG:
>   urlpatterns += patterns('',(r'^m/(?P.*)$', serve, {
>   'document_root' : os.path.join(os.path.dirname(__file__),"media")
>  })
>  )
>
> and that works (i.e thuimbanils are made in the right directory) but
> they don't show up on the webpage. Now, I think that urls.py needs to
> be configured in the right way, i.e translate the output of the
> thumbnail tag to something that 'django.views.static.serve' can use
> but I haven't figured out how. The last lines in urls.py is for static
> images in css and I guess the tumbs should use something similar.
>
> any help?
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: TypeError: 'tuple' object is not callable

2009-01-23 Thread Muslu Yüksektepe
check your urls.py

from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
import os,sys


urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
)

add it if u use django.1.0.2


2009/1/23 joti chand 

>
> Hi Guys, I was doing to the tutorials from the book: Teach yourself
> django in 24 hours and Part1 hour 3 ...to view the admin site it is
> giving the following error.
> Any help:
> Traceback (most recent call last):
>
>  File "C:\Python25\lib\site-packages\django\core\servers\basehttp.py",
> line 278, in run
>self.result = application(self.environ, self.start_response)
>
>  File "C:\Python25\lib\site-packages\django\core\servers\basehttp.py",
> line 635, in __call__
>return self.application(environ, start_response)
>
>  File "C:\Python25\lib\site-packages\django\core\handlers\wsgi.py",
> line 239, in __call__
>response = self.get_response(request)
>
>  File "C:\Python25\lib\site-packages\django\core\handlers\base.py",
> line 67, in get_response
>response = middleware_method(request)
>
>  File "C:\Python25\Lib\site-packages\django\middleware\common.py",
> line 56, in process_request
>if (not _is_valid_path(request.path_info) and
>
>  File "C:\Python25\Lib\site-packages\django\middleware\common.py",
> line 142, in _is_valid_path
>urlresolvers.resolve(path)
>
>  File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
> line 254, in resolve
>return get_resolver(urlconf).resolve(path)
>
>  File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
> line 181, in resolve
>for pattern in self.url_patterns:
>
>  File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
> line 205, in _get_url_patterns
>patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>
>  File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
> line 200, in _get_urlconf_module
>self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
>
>  File "c:\projects\iFriends\..\iFriends\urls.py", line 17, in 
>(r'^admin/', include('django.contribute.admin.urls')),
>
> TypeError: 'tuple' object is not callable
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: building a blog site

2009-01-19 Thread Muslu Yüksektepe
i am preparing a blog site.
check out www.yuksektepe.com
i will add how can make blog as soon as
thank you
from Turkiye

2009/1/19 joti chand 

>
> anyone knows is there any blog site development example in django
>
> >
>

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



pyisapie.dll error

2009-01-12 Thread Muslu Yüksektepe

i have this error. please help me



Internal Server Error
An error occurred processing this request.

Request handler failed

Traceback (most recent call last):
  File "C:\Program Files\SWsoft\Plesk\Additional\Python\lib\site-
packages\Http\Isapi.py", line 15, in Request
imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
IOError: [Errno 2] No such file or directory


--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---