Re: 404 only in Chrome

2011-12-10 Thread Bruno Tikami
Hi,

don't know if that helps but when I was working with app engine there were
errors that would only occur while using the "Incognito" windows.

Cheers,

Tkm

On Fri, Dec 9, 2011 at 11:52 PM, neridaj  wrote:

> Thanks for the reply but that didn't help.
>
> On Dec 9, 5:41 pm, Furbee  wrote:
> > In urls.py:
> >
> > Change:
> > (r'^portfolio/', include('project.urls.web')),
> >
> > To:
> > (r'^portfolio/$', include('project.urls.web')),
> >
> > The dollar sign makes it the end of the regular expression string.
> Without
> > it, /portfolio/ will match with /portfolio/funstuff,
> > /portfolio/?my_hax_rock, etc. See if that helps.
> >
> > Furbee
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Dec 9, 2011 at 5:33 PM, neridaj  wrote:
> > > Hello,
> >
> > > For some reason I'm getting a 404 in google chrome when I visit /
> > > portfolio/. The url entered is /portfolio/ but it returns as a 404 at /
> > > portfolio/undefined/ in the chrome developer tools window. I read a
> > > post about some issues with chrome handling errors and to resolve it
> > > by unchecking "Use a web service to help resolve navigation errors"
> > > but this didn't help with my problem. I'm not sure why undefined is
> > > being appended to the url, any ideas?
> >
> > > urls.py:
> >
> > > (r'^portfolio/', include('project.urls.web')),
> >
> > > project/urls/web.py:
> >
> > > urlpatterns = patterns('django.views.generic.list_detail',
> > >(r'^$', 'object_list', web_project_info_dict,
> > > 'project_web_archive_index'),
> > >(r'^(?P[-\w]+)/$', 'object_detail', web_project_info_dict),
> > > )
> >
> > > If it was a real 404 why isn't my error page displayed i.e., when I
> > > visit /portfolio/non-existent-slug, I get the proper 404 page.
> >
> > > >>> django.VERSION
> > > (1, 2, 0, 'alpha', 0)
> >
> > > Thanks for 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.
>
> --
> 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.
>
>

-- 
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: Pain on OSX

2011-07-28 Thread Bruno Tikami
On Thu, Jul 28, 2011 at 12:35 PM, Kolbe wrote:

> thanks for the pointers guys! really really helpful
>
>
Kolbe, have you updated your Xcode ? If not, do so in order to have your gcc
updated/compatible with Lion. I had problems with pycrypto and beautifulsoup
that were gone after updating xcode.

Cheers,

Tkm

-- 
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: Simple Django Report Generator

2011-03-10 Thread Bruno Tikami
On Thu, Mar 10, 2011 at 11:44 PM, Venkatraman S  wrote:

>
> On Fri, Mar 11, 2011 at 6:54 AM, Patrick McDonnell wrote:
>
>> Clearly, these kind of reports are trivial for me to hard code using
>> Django's ORM, but a much more ideal solution would be to provide users with
>> a (dare I say it) MS Access-like query builder, that would allow them to
>> choose the columns they want, define basic filters, and a sorting order, and
>> then review the results in a tabular format.
>>
>
> I have done earlier, wherein i had to design a custom dashboard for
> reporting.
> Instead of the ORM, think in terms of building a SQL - things would be much
> much easier and also faster to develop.
>
> -V
>
>
Hi Patrick,

have you tried Geraldo Reports [0] ? It's flexible, easy to use and worth a
look ;-)

Cheers,

Tkm

[0] http://geraldoreports.org/

-- 
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: Beginners question: select box with very much options

2009-06-18 Thread Bruno Tikami
Hello Mathias,

On Thu, Jun 18, 2009 at 12:37 PM, Mathias Waack wrote:

>
> Hello django experts,
>
> let me first note I'm a beginner in both django and web-development at all.


welcome!


>
> I have a form with some select boxes containing several million options.
> Now
> I'd like to have something like the search field in wikipedia, where I get
> suggestions during typing.


there are two common features that should help you get it done: suggestion
and autocomplete. A suggestion feature will show you some common searched
keywords (like youtube) while the autocomplete stuff will show you some
database records containing the typed text.


> I'm fairly sure this question has been answered several times, but I
> haven't
> found any feasible solution. Are there any special keyword you're using for
> this kind of input fields?


These features are implemented in JavaScript, as they are related to the
data representation _logic_  so it has nothing to do with special keywords
on inputs.



>
> Would be nice to have a solution working with last stable django, but just
> in
> case I could also upgrade to 1.1alpha.
>

I don't have any link to send you right now but once you know a little bit
more of it, I think you can google it ;-)


>
> Thanks!
>
> Mathias
>
>
Tkm

--~--~-~--~~~---~--~~
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-admin.py not working...HELP!

2009-05-14 Thread Bruno Tikami
On Thu, May 14, 2009 at 2:41 PM, bsisco  wrote:

>
> I've uninstalled and reinstalled django and I still can't get this to
> work.  Any help would be greatly appreciated...
>
> On May 14, 8:46 am, bsisco  wrote:
> > Ok.  I updated to the latest trunk release this morning and now when I
> > run django-admin.py startapp  I get the following: (specs:
> > Python 2.5, Win XP Pro, Django trunk release 10781)
> >
> > >django-admin.py startapp rd
> >
> > Traceback (most recent call last):
> >   File "C:\Python25\Lib\site-packages\django\bin\django-admin.py",
> > line 2, in 
> > from django.core import management
> > ImportError: No module named django.core
> >
> > My python path is as follows:>echo %pythonpath% >> out.txt
> >
> > C:\Python25;C:\Python25\Lib\site-packages\django;C:\django_projects;
> >
> > and my win path is :>echo %path% >> out.txt
> >
> > C:\Program Files\PHP\;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS
> > \system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files
> > \SecureCRT\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:
> > \Python25;C:\Program Files\e\cmd;C:\Program Files\QuickTime\QTSystem
> > \;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files
> > \Autodesk\DWG TrueView\;C:\ctags57;C:\Program Files\GnuWin32\bin;C:
> > \Program Files\MySQL\MySQL Server 5.1\bin;C:\cygwin\bin\;C:\MinGW\bin
> > \;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Python25\Lib\site-
> > packages\django\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files
> > \SecureCRT;C:\Documents and Settings\bsisco\Local Settings\Application
> > Data\VanDyke Software\SecureFX\;C:\Program Files\Nmap
> >
>
Hi bsisco,

are you shure that django is in your PYTHONPATH ? Try this:

open a python terminal
try to import django.

If it gives you an error, you should assure that your PYTHONPATH points to
the right directory.

Let us know what happened.

Tkm

--~--~-~--~~~---~--~~
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 to declare primitive variables with jstl tags

2009-05-08 Thread Bruno Tikami
On Fri, May 8, 2009 at 9:54 AM, Ajil  wrote:

>
> I am working in a project , in which i ahve to use jstl tags , so i
> have to know how to declare primitive variables with jstl tags
>
> regards
> Ajil
>
> >
> Hi Ajil,

I couldn't understand your problem. Could you be more specific and give us
some details ? Why do you need to declare JSP tags inside a Django app ?

Tkm

--~--~-~--~~~---~--~~
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 full-history?

2009-04-13 Thread Bruno Tikami
On Mon, Apr 13, 2009 at 1:48 PM, Brazilian Joe wrote:

>
> Dear all,
>
> I have been working on a system where we need full-history for our
> data. We need features like a 'live time machine', to be able to look
> at information as it was at a certain point of time in the past, in
> real time (including seeing deleted items). For that, we currently use
> a compound primary key (id + timestamp). This way, there are no
> updates or deletes, only inserts. a 'deletion' works by inserting
> another version of the object with a 'deleted' status.
>
> I would like to have some insight of the djago users and developers,
> if django already has similar features, or if would have to be created
> from scratch.
>
> I have been toiling on a system using stored procedures to distribute
> the data on several tables. PostgreSQL currently does not have full
> support for table partitioning, so custom procedures must be in place
> for the system to work. I am thinking about a simple partitioning
> system based on number of IDs, but frequently updated objects would
> cause certain tables to bloat.
>
> It seems to me (python+django n00b) that django provides a very nice
> way to speed up putting stuff online, but (assuming django does not
> already provide this functionality) I don't know how easy it would be
> to integrate django with a database system like that (if at all) , or
> to start over using django's models. Any insight is very much
> appreciated!
>
> Best regards
>

Hi Brazilian Joe, Brazilian Bruno speaking ;-)

did you look at Audit Trail [1] ? I know it does not do everything you need
but it could give you some good ideas on how to develop your app.
Unfortunately, I cannot help you with the other features you need.


[1] http://code.djangoproject.com/wiki/AuditTrail

Regards,

Tkm

--~--~-~--~~~---~--~~
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: seg fault with LDAP authentication

2009-02-17 Thread Bruno Tikami
On Tue, Feb 17, 2009 at 5:42 PM, molhacker  wrote:

>
> I've been running into a very frustrating situation with a seg fault
> in Apache when authenticating Django using LDAP.  The problem is
> intermittent, probably one out of every 5 logins causes the seg fault.
>
> The code I'm using for LDAP (borrowed from the web, thanks Mick)
> authentication is shown below
>
> Here's what I'm running
>
> Django-1.0.2-final
> Python 2.5.2
> httpd-2.2.9
> openldap-2.4.14
> python-ldap-2.3.5
> CentOS release 4.6 (Final)
>
> I've tried both mod_python-3.3.1 and mod_wsgi-2.3 I get the crash in
> both cases.  I've read that there are conflicts with mod_php, but this
> is not the issue, PHP has never been installed on this server.
>
> The code below runs perfectly in a standalone program, it only
> segfaults in Apache.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Pat
>
> import ldap
>
> from django.conf import settings
> from django.contrib.auth.models import User, check_password
>
> class LDAPBackend:
># from http://blogs.translucentcode.org/mick/tags/django/
>def authenticate(self, username=None, password=None):
>username = "%...@example.com" % (username)
>l = ldap.open('ldap.example.com')
>try:
>l.simple_bind_s(username, password)
>valid = True
>except ldap.LDAPError, e:
>valid = False
>if valid:
>try:
>user = User.objects.get(username=username)
>except User.DoesNotExist:
># Create a new user. Note that we can set password to
> anything
># as it won't be checked, the password from
> settings.py will.
>user = User(username=username, password='obtained from
> ldap')
>user.is_staff = True
>user.is_superuser = True
>user.save()
>return user
>return None
>
>def get_user(self, user_id):
>try:
>return User.objects.get(pk=user_id)
>except User.DoesNotExist:
>return None
>
> >
>

Hi Pat,

do you have any log for this error ?

I have a production code on which I do exactly the same you de (even
creating new users). The only difference is that I don't user open/bind:

conn = ldap.initialize('ldap://host')
dn = '' # dn stuff

try:
  lcon = conn.simple_bind_s(dn %username, password)
  print 'OK'
  return "200"
except ldap.INVALID_CREDENTIALS, e:
  return "400"

Hope that helps.

Tkm

--~--~-~--~~~---~--~~
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: Email This Page

2008-06-20 Thread Bruno Tikami
Mike,

I agree with Michael about the HTML content, you should follow his line . IF
you still do want to email html content, it's not that hard I just have 1
question for you: is your page's content on the database or on your file
system?

[]s!

Tkm
http://djangopeople.net/brunotikami/

On Fri, Jun 20, 2008 at 12:10 PM, Michael Trythall <[EMAIL PROTECTED]>
wrote:

> Mike,
>
> Why not just send a link to that particular page? It would be a lot less
> work, and from a usability standpoint it wouldn't be as jarring. Most users
> don't expect unsolicited HTML e-mails, and some folks can't read them.
>
> The link would be easier, and universally more accessible.
>
> Just a thought. I'm watching this thread because the answers could be
> interesting :)
>
> Michael Trythall
> Developer and Information Architect
>
> On 6/20/08, mike <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello,  I am working on a django app that displays call logs for our
>> customers.  I am using a print.css along with a print button that only
>> prints the rendered information. I would like to add an "email this
>> page" submit button. That will send an email containing all the
>> rendered information. What would be the best way to go about this.
>> Thanks 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: URL tag

2008-06-05 Thread Bruno Tikami
Armandas,

I didn't know the templatetag...

Anyway, I'm not sure if I understood what you really need. Do you need to
know what was the url accesseb by the user ? I know it's possible using the
request object on your view. Something like : request.get_full_path() .

If I still didn't help, add me on Gtalk [EMAIL PROTECTED]

[]s!

Tkm

On Thu, Jun 5, 2008 at 4:15 PM, Armandas <[EMAIL PROTECTED]> wrote:

>
> Hi, Bruno, thanks for a reply.
>
> I'm trying to get a path by which a certain function is accessed.
> http://www.djangoproject.com/documentation/templates/#url
>
> This is a docstring from {% url %} tag function, which explains
> everything nicely:
>
> Returns an absolute URL matching given view with its parameters.
>
>This is a way to define links that aren't tied to a particular URL
> configuration::
>
>{% url path.to.some_view arg1,arg2,name1=value1 %}
>
>The first argument is a path to a view. It can be an absolute
> python path
>or just ``app_name.view_name`` without the project name if the
> view is
>located inside the project.  Other arguments are comma-separated
> values
>that will be filled in place of positional and keyword arguments
> in the
>URL. All arguments for the URL should be present.
>
>For example if you have a view ``app_name.client`` taking client's
> id and
>the corresponding line in a URLconf looks like this::
>
>('^client/(\d+)/$', 'app_name.client')
>
>and this app's URLconf is included into the project's URLconf
> under some
>path::
>
>('^clients/', include('project_name.app_name.urls'))
>
>then in a template you can create a link for a certain client like
> this::
>
>{% url app_name.client client.id %}
>
>The URL will look like ``/clients/client/123/``.
>
>
> On 5 Jun, 20:09, "Bruno Tikami" <[EMAIL PROTECTED]> wrote:
> > Armandas,
> >
> > The url patterns are not sent within the HttpResponse and therefore not
> > passed to the template context. What exactly are you trying to do ?
> >
> > Porbably, it's just a small fix on your views .
> >
> > []s!
> >
> > Tkm
> >
> >
> >
> > On Thu, Jun 5, 2008 at 3:40 PM, Armandas <[EMAIL PROTECTED]> wrote:
> >
> > > Hi, I have problems making {% url %} work.
> >
> > > I have this urls.py file in my project directory:
> > > from django.conf.urls.defaults import *
> >
> > > urlpatterns = patterns('root',
> > >(r'^blog/', include('blogapp.urls')),
> > >(r'^admin/', include('django.contrib.admin.urls')),
> > > )
> >
> > > then in my applicatoion folder, another urls.py (which is included in
> > > first file):
> > > from django.conf.urls.defaults import *
> >
> > > urlpatterns = patterns('blogapp.views',
> > >(r'^$', 'homepage'),
> > >(r'^([a-z0-9-]+).html(#[a-z]+)?$', 'post_by_name'),
> > >(r'^tags/([a-z0-9-]+)/$', 'posts_by_tag'),
> > > )
> >
> > > Now I'm adding {% url posts_by_tag %} in my template, but it doesn't
> > > output anything. I also tried the following combinations:
> > > {% url blogapp.posts_by_tag %}
> > > {% url blogapp.views.posts_by_tag %}
> >
> > > Do you have any suggestions?
> >
> > > Thanks.
> >
> > --
> > []s!
> >
> > Tkmhttp://djangopeople.net/brunotikami/
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

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



Re: URL tag

2008-06-05 Thread Bruno Tikami
Armandas,

The url patterns are not sent within the HttpResponse and therefore not
passed to the template context. What exactly are you trying to do ?

Porbably, it's just a small fix on your views .

[]s!

Tkm


On Thu, Jun 5, 2008 at 3:40 PM, Armandas <[EMAIL PROTECTED]> wrote:

>
> Hi, I have problems making {% url %} work.
>
> I have this urls.py file in my project directory:
> from django.conf.urls.defaults import *
>
> urlpatterns = patterns('root',
>(r'^blog/', include('blogapp.urls')),
>(r'^admin/', include('django.contrib.admin.urls')),
> )
>
> then in my applicatoion folder, another urls.py (which is included in
> first file):
> from django.conf.urls.defaults import *
>
> urlpatterns = patterns('blogapp.views',
>(r'^$', 'homepage'),
>(r'^([a-z0-9-]+).html(#[a-z]+)?$', 'post_by_name'),
>(r'^tags/([a-z0-9-]+)/$', 'posts_by_tag'),
> )
>
> Now I'm adding {% url posts_by_tag %} in my template, but it doesn't
> output anything. I also tried the following combinations:
> {% url blogapp.posts_by_tag %}
> {% url blogapp.views.posts_by_tag %}
>
> Do you have any suggestions?
>
> Thanks.
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

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



Re: Yet another installation problem

2008-05-07 Thread Bruno Tikami
Hello LRP,

Your problem is not with yout PYTHONPATH but with your user's profile PATH.
If your Debian can't find django-admin.py it's because it's not on your
"bin" directory (which usually is /usr/bin  but can also be in
/usr/local/bin). Synlink django-admin.py into /usr/bin (once you've already
tryied /usr/local/bin and make sure to give it execution permissions (chmod
+x) after the link is there.

I really don't think the problem is on django's docs cause I've translated
this tutorial for Brazilian Portuguese and no one has ever complained about
it.

Good luck and let us know if you have any other problems..

Regards,

Tkm- Show quoted text -


On Wed, May 7, 2008 at 8:09 PM, LRP <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I've been trying to load the development version of django onto Debian
> testing (lenny).
>
> I've successfully loaded and tested postgresql. And I've successfully
> downloaded django from subversion into my home directory:
>
> [EMAIL PROTECTED]:~/django-trunk/django/bin$
>
> Following this model in ~/debian-trunk/docs/install.txt:
>
>   ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django
>
> I've created the following symlink in [EMAIL PROTECTED]:/usr/lib/
> python2.5/site-packages$ :
>
> lrwxrwxrwx 1 root root 31 2008-05-07 18:24 django -> /home/lloyd/
> django-trunk/django
>
> And, again, following instructions in install.txt, and using the
> following model:
>
>   ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/
> bin
>
> I've created this symlink in /usr/lib/python2.5:
>
>  django-admin.py -> /home/lloyd/django-trunk/django/bin/django-
> admin.py
>
> Note that */usr/local/bin doesn't exist in my $PYTHONPATH, so I've put
> the symlink in [EMAIL PROTECTED]:/usr/lib/python2.5,
>
> Here's my $PYTHONPATH, confirming that /usr/lib/python2.5 is in the
> path:
>
> >>> sys.path
> ['', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/
> python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/
> python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/
> usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/
> Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/
> site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/var/
> lib/python-support/python2.5/gtk-2.0']
>
> Now at this point, according to the following instruction in the
> tutorial on the django site,  I should be able to start my project:
>
> "From the command line, cd into a directory where you'd like to store
> your code, then run the command django-admin.py startproject mysite.
> This will create a mysite directory in your current directory."
>
> When I do this, however, I get the following error message:
>
> discovery:/home/lloyd/django$ django-admin.py startproject mysite
> bash: django-admin.py: command not found
>
> Question: is the problem in my method? Or in the django's install
> instructions?
>
> Many thanks,
>
> LRP
>
>
>
>
>
> >
>



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



Re: Enterprise applications with Django

2008-04-16 Thread Bruno Tikami
Hussein B,

You can use Twisted [1] or Pyro [2] to call python remote  objects. With
Pyro, you may use pickle/ unpickle to transfer data and Twisted allows you
to use XMLRPC, HTTP request or whatever protocol you wnat to use. Pyro is
far more simplier but Twisted si way more robust (Google uses it a lot).

[1] twistedmatrix.com
[2] pyro.sourceforge.net

Regards,

Tkm

On Wed, Apr 16, 2008 at 10:33 AM, Hussein B <[EMAIL PROTECTED]> wrote:

>
> In Java we have a dedicated component model for business logic (EJB)
> and the ability to call remotely other components
> With Java, we can create 3-tier enterprise applications not to mention
> a cluster of servers.
> I didn't play with Django yet but it seems to me that the presentation
> and logic are located on the same server for Django applications.
>
>
> On Apr 16, 3:14 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> > Hussein B schrieb:
> >
> > > Hi.
> > > Is it possible to create enterprise applications (in the same context
> > > of Java EE applications, highly concurrent, distributed ...) with
> > > Python?
> > > I'm still playing around Python but it seems to it is best fits in
> > > public web sites (YouTube), news sites, forums ...
> >
> > I guess YouTube is highly concurrent, distributed ...
> >
> > I think you can create enterprise applications with django and python.
> >
> > What do you think is possible with Java, that you can't do with python?
> >
> >  Thomas
> >
> > --
> > Thomas Guettler,http://www.thomas-guettler.de/
> > E-Mail: guettli (*) thomas-guettler + de
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

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



Re: get_or_create and DoesNotExist

2008-04-02 Thread Bruno Tikami
Bryan,

sorry for the late reply. I've downloaded your code and will run some tests
right now. I write you back when I get something.

[]s!

Tkm

On Mon, Mar 31, 2008 at 7:28 PM, Bryan Veloso <[EMAIL PROTECTED]> wrote:

>
> Sure thing Bruno,
>
> Model: http://dpaste.com/hold/42454/
> Flickr Importer: http://dpaste.com/hold/42455/
>
> I think that's all that's involved.
>
> Cheers,
> Bryan
>
>
> On Mar 31, 1:22 pm, "Bruno Tikami" <[EMAIL PROTECTED]> wrote:
> > Hi Bryan,
> >
> > would you post your model and view code too? As you didn't send the view
> > code, it's quite hard to say what's wrong. I *guess* result is your
> QuerySet
> > object created by the get_or_created call . If so, did you save() the
> > created object ?
> >
> > Regards,
> >
> > Tkmhttp://djangopeople.net/brunotikami/
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

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



Re: Dynamic Subdomain Generation for Users

2008-03-31 Thread Bruno Tikami
Hi vemon,

when the user access user.domain.com the request will be treated by a
different project or all users share the same project? Though it may look a
stupid question, if they have separate projects, you don't have to worry
about it, cause they'll have different urls.py files.

If they share the same project, I can't help you. BTW, I don't even now how
to share the same project with several sub-domains (using apache).

Regards,
Tkm

On Mon, Mar 31, 2008 at 5:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

>
> Hi guys.
>
> I'm developing a system that gives a user a sub domain for their
> account.
>
> I found this article,
> http://www.rossp.org/blog/2007/apr/28/using-subdomains-django/,
> which is really helping. But the problem I'm having trouble thinking
> through is how I could give sub domains certain urls that the main
> domain wouldn't have. For example:
>
> A user's account would be user.domain.com. When they access that it
> would redirect to user.domain.com/login. I don't want the normal
> domain.com to be able to go to /login without being a sub domain.
>
> Ideas on how I should implement this would be great.
>
> Thanks,
> Levi
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

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



Re: get_or_create and DoesNotExist

2008-03-31 Thread Bruno Tikami
Hi Bryan,

would you post your model and view code too? As you didn't send the view
code, it's quite hard to say what's wrong. I *guess* result is your QuerySet
object created by the get_or_created call . If so, did you save() the
created object ?

Regards,

Tkm
http://djangopeople.net/brunotikami/

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



Re: Python using django framework

2008-03-23 Thread Bruno Tikami
Hi man!

I'm not sure if I understood you right, can you specify your needs a little
more?

I mean, I'm not exactly sure if Django is the besst tool for you. Probably,
Python already has everything you need.

Regards,

Tkm
http://djangopeople.net/brunotikami/

On Sun, Mar 23, 2008 at 10:52 PM, julichrist <[EMAIL PROTECTED]> wrote:

>
>
> hi, i'm using django framework. but now i'm facing some problem... i want
> to
> check if the system time is the same with the time that user input? i
> don't
> know how to do it in django framework... but i'm sure in VB, php or
> something just like this
>
> if date() = "07:00" then
> bootds
> end if
>
> just now i try this code
>
> {% ifequal now "H:i" settings.temptime %}
> aaa
> {% endifequal %}
>
> and one more thing, i have a module in models.py to wake on lan... so what
> i'm trying to do is, make some schedulling program... to auto start the
> client computer and auto shut down that computer... on specific time... so
> i
> need to check if the system time is the same with the time that user
> specific, then call the module in models.py..
>
> anyone can help i even don't know how to call module in django
> --
> View this message in context:
> http://www.nabble.com/Python-using-django-framework-tp16173503p16173503.html
> Sent from the django-users mailing list archive at Nabble.com.
>
>
> >
>

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



Re: Photologue 1.0 is out (image management application)

2008-03-05 Thread Bruno Tikami
It looks great Justin.  I'm already testing it. Thanks for sharing

Tkm

On 3/5/08, Justin <[EMAIL PROTECTED]> wrote:
>
>
> Photologue 1.0b is out. The project page has been updated to reflect
> the new 1.0 status and a new documentation site
> http://sites.google.com/a/justindriscoll.us/photologue/Home is up and
> (mostly) complete. If you use uploaded images in your project I think
> you'll want to check this out.
>
> From the introduction:
>
> Photologue is a Django application, more specifically, it's a complete
> image management solution for your Django site. Photologue replaces
> the ImageField in Django with a powerful system that supports resizing
> and image effects as well as providing a turn-key photo gallery
> solution. Photologue embraces the Django admin and smoothly integrates
> with photo thumbnails and effect previews.
>
>
> - Justin
> >
>


-- 
[]s!

Tkm
http://djangopeople.net/brunotikami/

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



Re: Releasing django-treemenus: a generic menu application for Django

2008-02-15 Thread Bruno Tikami
Hi Julien!

I liked your app really much. As I was adding it to an project I have, I've
found my self asking: why can't we define the menu's  content through the
admin interface? We could use an WYSIWYG editor for that. What do you think?

Cheers!

Tkm

On 2/13/08, Julien <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I hope it's ok if I do this announcement here, as my blog hasn't been
> hooked up to the Django community aggregator yet .
>
>
> I remember when starting using Django, I was a bit disappointed that
> there was no easy-to-use or straight-forward application to build
> menus, at least I didn't find any that suited me. Yet, menus are
> something that you find on pretty much every website, and I wanted to
> fill that gap. So I started making my own app, and made it generic and
> open source so it could hopefully benefit other django users.
>
> So here it is, django-treemenus[1], a simple and generic application
> that lets you easily build tree-structured menus for your django site.
> It contains all (and only) the essentials, and it should be easy for
> anyone to extend it to fit their particular needs. You can define your
> own templates, and there's a user-friendly admin interface to manage
> the structure of your menus.
>
> All the code and documentation are available at google code [1].
>
> Have a go, and please let me know about potential issues or bugs,
> either here, on my blog[2] or on the google code issue tracking
> system.
>
> All the best,
>
> Julien
>
> [1] http://code.google.com/p/django-treemenus/
> [2] http://www.creativityandcognition.com/blogs/julien/?cat=5
> >

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



Re: What's the best way to handle big sets of data?

2007-10-01 Thread Bruno Tikami
Hello Tim and Richard,

Sorry for the late reply but I was offline for the last days.

I asked the same question to Brazilian Django users and I've got the same
answer 'focus on your sgbd, Django is not going to be your problem' so I
decided to have a better look on Postgres  and start to do some tests BEFORE
writing my Django project.

Tks !

Tkm

On 9/25/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
>
> > I'm developing a Django project that's going to handle with
> > big sets of data and want you to advise me. I have 10 internal
> > bureaus and each of then has a 1.5 million registers database
> > and it really looks to keep growwing on size on and on.  I
> > intend to use Postgres.
> >
> > The question:  what's the best way to handle and store this
> > data? I tought about breaking the app model into 10 smaller
> > ones (Bureau_1, Bureau_2, Bureau_3 etc) cause the main reports
> > are splited by Bureau. Response time matters. What do you
> > think?
>
> I deal with fairly large datasets (my employer does cell-phone
> management, tending tens of thousands of phones, for hundreds of
> companies, with historical statement detail for each phone, and
> about 2.8e6 records of call-detail for those clients that require
> the 3mo worth that we'll keep...and only growing).
>
> I can't say that splitting across multiple databases makes a very
> useful partitioning and it forces you to design your application
> around performance.  It also becomes a maint. headache as you
> have to touch each DB (or script) when performing changes.
> Rather than just adding a column to a table, you have to spew
> your ALTER TABLE statement across each DB.  It (unless each is on
> its own machine, where it doesn't matter) would also not be able
> to agressivly cache common tables.
>
> Learning the ins-and-outs of Postgresql's EXPLAIN command can
> help you find bottle-necks (such as missing indexes).  I'm afraid
> I haven't become adroit at this.
>
> The VACUUM ANALYZE can find and fix areas of usage that
> Postgresql can optimize.
>
> I have had some performance problems with that call-detail table
> (with its 2.8e6 rows or so), but find that as it's indexed, as
> long as I pull from a joined table and only pull in the records I
> care about, it can be pretty snappy.  It's mostly sluggish when I
> try and do operations across the whole table rather than a subset
> of it, but even then, it's not too bad.
>
> Fast disks (a raid configuration helps) and loads of memory (as
> much as your server will hold, or at least a couple gigs if
> you've got a super-server) will go a long way towards easing your
> data pains.  Multiple processors can help too, but most notably
> after you've eased the IO/memory bottle-necks.
>
> Just my obeservations from the field,
>
> -tim
>
>
>
>
>
> >
>

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



Re: django and postgres

2007-09-27 Thread Bruno Tikami
or, if you haven't, add the line

local   all postgres   password

be aware that this will allow the user postgres (once password
authenticated) to access all the databases. If you don't want it, change
'all' to you porject's database name .

On 9/27/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
>
> On 27-Sep-07, at 1:32 PM, Heba Farouk wrote:
>
> > psycopg2.OperationalError: FATAL:  Ident authentication failed for
> > user "postgres"
>
> edit your pg_hba.conf file and set authentication to 'password'
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/web/
>
>
>
> >
>

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



Re: What's the best way to handle big sets of data?

2007-09-25 Thread Bruno Tikami
Hi Richard,

I'm more concerned with the query response time...

thanks for your fast reply = )

On 9/25/07, Richard Dahl <[EMAIL PROTECTED]> wrote:
>
> Bruno,
> It is difficult to advise based on the information provided.  Not sure
> exactly what you are concerned with, postgres database size? query response
> time? network transfer time? All of the above?  Each of these impacts can be
> dealt with differently.  Perhaps if you provided some detail on exactly what
> your concerns are, you may get better recommendations.  I am not a database
> expert, and I did not sleep in a Holiday Inn express last night, but I have
> done a bit of ajax-enabled web development and async calls can be really
> helpful in getting large amounts of data from the server to the client in
> small efficient chunks, if the network transfer issue is high on your list.
> -richard
>
>
> On 9/25/07, Bruno Tikami <[EMAIL PROTECTED]> wrote:
> >
> > Hi fellows,
> >
> > I'm developing a Django project that's going to handle with big sets of
> > data and want you to advise me. I have 10 internal bureaus and each of then
> > has a 1.5 million registers database and it really looks to keep
> > growwing on size on and on.  I intend to use Postgres.
> >
> > The question:  what's the best way to handle and store this data? I
> > tought about breaking the app model into 10 smaller ones (Bureau_1,
> > Bureau_2, Bureau_3 etc) cause the main reports are splited by Bureau.
> > Response time matters. What do you think?
> >
> > Thanks!!
> >
> > Tkm
> >
> >
> >
>
> >
>

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



What's the best way to handle big sets of data?

2007-09-25 Thread Bruno Tikami
Hi fellows,

I'm developing a Django project that's going to handle with big sets of data
and want you to advise me. I have 10 internal bureaus and each of then has a
1.5 million registers database and it really looks to keep growwing on size
on and on.  I intend to use Postgres.

The question:  what's the best way to handle and store this data? I tought
about breaking the app model into 10 smaller ones (Bureau_1, Bureau_2,
Bureau_3 etc) cause the main reports are splited by Bureau. Response time
matters. What do you think?

Thanks!!

Tkm

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



Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-08-07 Thread Bruno Tikami
Hi everybody (specially Malcom),

After a long period, I had time to delte the unecessary variables and test
it. So, finally, the goes the list of settigns you must include on you
default settings file in order to use you application models outside Django
web context (a python server side script for instance).

gettext_noop = lambda s: s
DATABASE_OPTIONS = {}
URL_VALIDATOR_USER_AGENT = "Django/0.96pre (http://www.djangoproject.com)"

It works on my actual project.

Good luck!

Tkm


On 5/11/07, Bruno Tikami <[EMAIL PROTECTED]> wrote:
>
> Malcolm, it works
>
>
> Thanks a lot, I shall delete the unecessary global settings.
>
> TKS!!!
>
>
> Tkm
>
> On 5/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Bruno,
> >
> > On Fri, 2007-05-11 at 11:11 -0300, Bruno Tikami wrote:
> > > Hello Malcolm
> > >
> > > Thanks for you fast reply
> > >
> > > I'll try to put the missing settings on my project.settings . Do I
> > > have to call configure() in some diferent way after I do that? I mean,
> > > if my settings have all the global settings...
> >
> > No. The first argument to configure() is a class or a module, so that
> > the code can access each of the settings as an attribute. So if you
> > project settings contains every single global setting, you will be able
> > to pass that in (boy is that going to be a big file, though). Note that
> > you may not actually need every single global setting, but you will need
> > a fair chunk of them, I expect.
> >
> > Regards,
> > Malcolm
> >
> >
> >
> > > >
> >
>

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



Any new for MS SQL Server???

2007-06-15 Thread Bruno Tikami
Hi Django folks!

Does anyone have any news about Django supports to MS SQL Server? I've
already read the hole old bunch of topics and dicussions about this matter,
jsut want to know if there is come news.

Best regards my friends!

Tkm

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



Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Bruno Tikami
Malcolm, it works


Thanks a lot, I shall delete the unecessary global settings.

TKS!!!


Tkm

On 5/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> Hi Bruno,
>
> On Fri, 2007-05-11 at 11:11 -0300, Bruno Tikami wrote:
> > Hello Malcolm
> >
> > Thanks for you fast reply
> >
> > I'll try to put the missing settings on my project.settings . Do I
> > have to call configure() in some diferent way after I do that? I mean,
> > if my settings have all the global settings...
>
> No. The first argument to configure() is a class or a module, so that
> the code can access each of the settings as an attribute. So if you
> project settings contains every single global setting, you will be able
> to pass that in (boy is that going to be a big file, though). Note that
> you may not actually need every single global setting, but you will need
> a fair chunk of them, I expect.
>
> Regards,
> Malcolm
>
>
>
> >
>

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



Re: DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Bruno Tikami
Hello Malcolm

Thanks for you fast reply

I'll try to put the missing settings on my project.settings . Do I have to
call configure() in some diferent way after I do that? I mean, if my
settings have all the global settings...

On 5/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> On Fri, 2007-05-11 at 22:53 +1000, Malcolm Tredinnick wrote:
> [...]
> > Manual configuration isn't really designed to make it trivial to specify
> > your normal settings file and some overrides like you are trying to do
> > here.
>
> I should point out that there wasn't really any technical reason for
> this decision and it's not because we're mean people. We just didn't
> think that there might be a lot of use-cases when you wouldn't want to
> specify all the changes from default yourself. Running scripts, however,
> is the obvious one we forgot about.
>
> So if you (or anybody else) wants to come up with a backward-compatible
> change that allows for specifying a module that is laid over the top of
> global_settings and then have the keyword args applied, go for it. Open
> a ticket with the patch and I will give it serious consideration.
>
> Regards,
> Malcolm
>
>
>
> >
>

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



DJANGO_SETTINGS_MODULE ERROR using Django models from python shell

2007-05-11 Thread Bruno Tikami
Hi!

I'm trying to use Django models from a python script and I'm having some
settings problem. Even though I called settings.configure, it keeps ordering
for some other setting parameter. The error is listed below. Any idea?



$ python
>>> import recorder
>>> import recorder.settings
>>> from django.conf import settings
>>> settings.configure(recorder.settings, DEBUG=True)
>>> import recorder.six_core
Traceback (most recent call last):
  File "", line 1, in ?
  File "recorder/six_core/__init__.py", line 1, in ?
from recorder.six_core.models   import Server_Status
  File "/usr/six/recorder/six_core/models.py", line 1, in ?
from django.db import models
  File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 30, in
?
connection = backend.DatabaseWrapper(**settings.DATABASE_OPTIONS)
  File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 32,
in __getattr__
return getattr(self._target, name)
  File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 133,
in __getattr__
return getattr(self.default_settings, name)
AttributeError: 'module' object has no attribute 'DATABASE_OPTIONS'



Tks,


Tkm

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



NOOB - How to extend Admin templates

2007-05-08 Thread Bruno Tikami
Hello guys!

I'm quite new to Django and I'd like some help with it's templates.

How can I use the admin templates to show my own data? I mean, If I have a
FK field, the admin view won't show the "select_related" fields from the
foreign class. How can I create my own view and displays it through the
admin templates? Also, I'm trying to test my server performance and put a
"elapsed time" for each search the user make. Just like Google, you see?
"155 results found in a total 1000 in X seconds". Have somebody ever done
this?

Tks!

Tkm

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



Re: How to change the size of input field from Django

2007-05-04 Thread Bruno Tikami
You might also want to take a look at contrib/admin/views/template.py 's
class TemplateValidator

On 5/4/07, Bruno Tikami <[EMAIL PROTECTED]> wrote:
>
> Hi Pythoni!
>
> have you tried to take a look at  oldforms/__init__.py file? There, look
> for the LargeTextField class and it's render function. I understand it's not
> exactily what you wanted, but it's a point to start ;)
>
>
> good luck!
>
>
> Tkm
>
>
> On 5/4/07, Pythoni <[EMAIL PROTECTED]> wrote:
> >
> >
> > One of the field in my model is defined
> > Description=meta.TextField()
> >
> > When I use
> > {{form.Description}}
> > in my input form( template)
> > the field is not as large as I would need.
> > When I check HTML I can see
> >
> >  > name="Description" rows="10" cols="40">
> >
> > But I would need at least rows="20" cols="70".
> > Is there a way how to change the size from Django directly and not by
> > editing HTML code?
> > Thank you
> > L.B.
> >
> >
> > > >
> >
>

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



Re: Apache + mod_python problem

2007-05-04 Thread Bruno Tikami
Hi Haku!

I have the same problem last week. What I did was to reate a file called
.pth and saved it on /usr/lib/python2.4/site-packages/ inside this
file, I wrote the root path to my project..

try it & let me know the results.

good luck!

Tkm

On 5/4/07, Haku <[EMAIL PROTECTED]> wrote:
>
>
> Ok, i'm here with another question :D
>
> Everithing is fine on my development server (windows), but now i want
> to put my project on my production server
>
> My production Server is a VPS running everithing django needs to run,
> so i've modified my httpd.conf file adding the following lines:
>
> 
> SetHandler python-program
> PythonPath "['/root/mysite'] + sys.path"
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> PythonDebug On
> 
>
> but as i restart apache and surf to http://urltoproducion/mysite/ I
> always get this ugly page with this ugly error:
>
> EnvironmentError: Could not import settings 'mysite.settings' (Is it
> on sys.path? Does it have syntax errors?): No module named
> mysite.settings
>
> where am i wrong? I guess it's a path problem or something like
> that...
>
> Thank you!!!
>
> Haku
>
>
> >
>

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



Re: How to change the size of input field from Django

2007-05-04 Thread Bruno Tikami
Hi Pythoni!

have you tried to take a look at  oldforms/__init__.py file? There, look for
the LargeTextField class and it's render function. I understand it's not
exactily what you wanted, but it's a point to start ;)


good luck!


Tkm


On 5/4/07, Pythoni <[EMAIL PROTECTED]> wrote:
>
>
> One of the field in my model is defined
> Description=meta.TextField()
>
> When I use
> {{form.Description}}
> in my input form( template)
> the field is not as large as I would need.
> When I check HTML I can see
>
>  name="Description" rows="10" cols="40">
>
> But I would need at least rows="20" cols="70".
> Is there a way how to change the size from Django directly and not by
> editing HTML code?
> Thank you
> L.B.
>
>
> >
>

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



Re: Unknown column 'appname_modelname.category_id' in 'field list

2007-05-03 Thread Bruno Tikami
Hi!

1st think, syncdb does not update your tables defi9nition so, if you change
something in the class, you'll have to "ALTER TALBE" it in order not to drop
the table. It's a pitty but you have to do it with regular SQL through your
mySql client.

About not required fields, you just have to specify "blank=True"

name = models.CharField(maxlength=50)
age= models.PositiveIntegerField(blank=True)

in the admin view, you'll see that the age field willl not be bolded ;)

If anything else come up, let me know.

good luck!

Tkm


On 5/3/07, nerezus <[EMAIL PROTECTED]> wrote:
>
>
> I've just dropped all the tables and "syncdb" another one time. And
> it's working now!
>
> But what should I do if I want to add new field to model? Dropping
> tables is not a good idea... And without dropping "syncdb" does not
> work.
>
> P.S. How to add an unneccessary field which can be left empty in
> Django administration panel?
>
>
> >
>

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



Re: Unknown column 'appname_modelname.category_id' in 'field list

2007-05-02 Thread Bruno Tikami
have you tried to "syncdb" your project with mysql just, do it once
more. I think it's worth a try ;)

On 5/2/07, Bruno Tikami <[EMAIL PROTECTED]> wrote:
>
> nerezus, I'm gonna check out your problem & try to simulate this error for
> you man.
>
> The "category_id" field it complains it generated automatcally by Django.
> It ALWAYS create a field called _id if you don't create an
> AutoField atributte. You should see it on select * from
> publications_category ;)
>
>
> good Luck
>
> Tkm
>
> On 5/2/07, nerezus <[EMAIL PROTECTED] > wrote:
> >
> >
> > I tried to use sqlite3 instead of mysql, and it starts work.
> >
> > But I need mysql, how to make this code work with 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Unknown column 'appname_modelname.category_id' in 'field list

2007-05-02 Thread Bruno Tikami
nerezus, I'm gonna check out your problem & try to simulate this error for
you man.

The "category_id" field it complains it generated automatcally by Django. It
ALWAYS create a field called _id if you don't create an
AutoField atributte. You should see it on select * from
publications_category ;)


good Luck

Tkm

On 5/2/07, nerezus <[EMAIL PROTECTED]> wrote:
>
>
> I tried to use sqlite3 instead of mysql, and it starts work.
>
> But I need mysql, how to make this code work with 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---