Re: Project together

2023-12-06 Thread Apili Vicky
Am interested too


On Thursday, November 23, 2023, Youssef Bachraoui <
bachraouiyouss...@gmail.com> wrote:

> Hi developer i search to make a group on WhatsApp to begin a project
> together anyone interested about that?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/d5244e76-6bd3-4bde-bf31-a72720bee1acn%
> 40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKMta-66NDKVJ-fXTdLx4KLT-VaG2yjqp7vf30YLJZjgJ%3DRrFw%40mail.gmail.com.


Hello everyone,happy to be here.

2023-06-29 Thread Apili Vicky
am failing to get apython path on the cmd interface..what could be wrong

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1bb2eac8-0f73-43f8-8fb6-1e72e1009259n%40googlegroups.com.


Add events to user calendar software

2009-04-22 Thread vicky

Hi,

I am new in django. I need to update events from my website to
outlook, Google, yahoo calendars. I have implemented some code from
vObject which download ".ics" file which is OK for outlook. I don't
know how to update event in Google and yahoo calendar.
I need functionality like shown in
http://rsazarinekharas.eventbrite.com/ in "Add to my calendar" section

Please help me.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Add events to user calendar software

2009-04-22 Thread vicky

Hi,

I am new in django. I need to update events from my website to
outlook, Google, yahoo calendars. I have implemented some code from
vObject which download ".ics" file which is OK for outlook. I don't
know how to update event in Google and yahoo calendar.

Please help me.
--~--~-~--~~~---~--~~
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: Converting from local DST to UTC

2009-04-22 Thread vicky



On Apr 15, 10:04 pm, Jamie  wrote:
> On Apr 14, 9:34 pm, Brian Neal  wrote:
>
> > This is how I am doing it (I'm also integrating with Google Calendar):
> 
> > tz = pytz.timezone(tz_name)  # create timezone
> > local = tz.localize(d)  # make naive datetime localized
> > zulu = local.astimezone(FixedOffset(0))  # convert to UTC
> > s = zulu.strftime('%Y-%m-%dT%H:%M:%S.000Z')
>
> tz.localize() did the trick.
>
> I was using naive_datetime.replace(tzinfo = tz) to convert from naive
> to a localized time. Once I changed that to tz.localize
> (naive_datetime), it worked perfectly.
>
> Thanks for the help!


Hi,

I am new in django. I need to update events from my website to
outlook, Google, yahoo calendars. I have implemented some code from
vObject which download ".ics" file which is OK for outlook. I don't
know how to update event in Google and yahoo calendar.

Please help me.

--~--~-~--~~~---~--~~
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: Auto increment in model primarykey

2009-04-21 Thread Vicky

Thanks a lot man. It worked. I just made it as AutoField :)



On Apr 21, 5:15 pm, Mike Ramirez  wrote:
> On Tuesday 21 April 2009 05:07:06 am Anatoliy wrote:
>
> > Try to remove id field from model description. Django handles it
> > automatically.
>
> > On Apr 21, 3:48 pm, Vicky  wrote:
> > > I have a table with an 'id' field (Primary Key). When I insert the
> > > data using admin interface it is asking me for the value of the
> > > primary key field. But I want it to be filled automatically. Is there
> > > a way to do it?
>
> you can also have
>
> id = AutoField(primary_key=True) or id = IntegerField(primary_key=True)
>
> http://docs.djangoproject.com/en/dev/ref/models/instances/#auto-incre...
>
> http://docs.djangoproject.com/en/dev/ref/models/fields/#primary-key
>
> Mike
>
> --
> This is the first age that's paid much attention to the future, which is a
> little ironic since we may not have one.
>                 -- Arthur Clarke
>
>  signature.asc
> < 1KViewDownload
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Auto increment in model primarykey

2009-04-21 Thread Vicky

I have a table with an 'id' field (Primary Key). When I insert the
data using admin interface it is asking me for the value of the
primary key field. But I want it to be filled automatically. Is there
a way to do it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django too slow

2009-01-07 Thread Vicky

I using the django to generate xml and to fetch datas from database.
When i run it the response is too slow. it takes nearly 4sec to load
the page. So what can i do to make my program more efficient. Plse
tell me some things to avoid so that it becomes faster
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



models problem

2009-01-06 Thread Vicky

Some datas in my database are missing when i view it using models.Am
using MYSql db. The datas that are in database when viewing using
querry browser where not seen when using model to access database. can
anyone 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: enumerate in templates

2008-12-29 Thread Vicky

command like below is not working... can u suggest a way??


{% for node in nodes %}
{% ifequal nodes[(forloop.counter0)-1].node_type '2' %}






On Dec 29, 9:21 am, Vicky  wrote:
> ya that's what i need :) thanks a lot :) :)
>
> On Dec 28, 8:06 pm, Daniel Roseman 
> wrote:
>
> > On Dec 27, 6:20 am, Vicky  wrote:
>
> > > Is there a way to access the previous value of a for loop in
> > > templates. Can anyone tell the template representation for the python
> > > code like:
>
> > >                          for i,j in enumerate(item):
> > >                         ...
>
> > I think the various forloop variables are what you want.
>
> > {% for j in item %}
> > {{ forloop.counter0 }}
> > {% endfor %}
>
> > See :http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for
> > --
> > DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Template IDE

2008-12-28 Thread Vicky

how can we debug errors in templates? Are there any IDE for this?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Variables in templates

2008-12-28 Thread Vicky

Is there any way to create a variable within the templates...?
--~--~-~--~~~---~--~~
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: enumerate in templates

2008-12-28 Thread Vicky

ya that's what i need :) thanks a lot :) :)

On Dec 28, 8:06 pm, Daniel Roseman 
wrote:
> On Dec 27, 6:20 am, Vicky  wrote:
>
> > Is there a way to access the previous value of a for loop in
> > templates. Can anyone tell the template representation for the python
> > code like:
>
> >                          for i,j in enumerate(item):
> >                         ...
>
> I think the various forloop variables are what you want.
>
> {% for j in item %}
> {{ forloop.counter0 }}
> {% endfor %}
>
> See :http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for
> --
> DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



enumerate in templates

2008-12-27 Thread Vicky

Is there a way to access the previous value of a for loop in
templates. Can anyone tell the template representation for the python
code like:

 for i,j in enumerate(item):
...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ImportError

2008-12-25 Thread Vicky

I am having a model in my application. I tried to get the values form
shell by typing:
from x.models import datasets

but its giving an error:
  Traceback (most recent call last):
  File "", line 1, in ?
  ImportError: cannot import name datasets

Can anyone tell me y it occurs and how to overcome it?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



posting data to url

2008-12-24 Thread Vicky

i used this code to send more than one data to url:

  http://local/www/app/data/id=1&name=django&phone=23232

but is this the right pattern a url should look like? If not can
anyone tell how can we send them?



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



template string formatting

2008-12-13 Thread Vicky

Is there any way to take out the first letter of a string in django
template system?
 ex:

x("Hai") should give o/p as: "H"
--~--~-~--~~~---~--~~
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: request parsing

2008-12-10 Thread Vicky

Thanks a lot man. That site really helped me a lot

On Dec 11, 12:41 am, Polat Tuzla <[EMAIL PROTECTED]> wrote:
> django-attachments application at 
> thehttp://github.com/korpios/django-chicago/tree/master
> is a good example that has a model (Attachment) with a file field and
> a form that is driven by the model (AttachmentForm).
>
> For forms with other types of fields including an image field you can
> check out django-profile application 
> athttp://code.google.com/p/django-profile/.
>
> For almost anything you could imagine, you should check 
> outhttp://pinaxproject.com
>
> On Dec 10, 8:16 am, Vicky <[EMAIL PROTECTED]> wrote:
>
> > hey can u plse attach and sent me a sample project that uses forms if
> > possible. I need to knw wr anw hw to create forms, should we include
> > anything in settings.py or urls.py?
--~--~-~--~~~---~--~~
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: request parsing

2008-12-09 Thread Vicky

hey can u plse attach and sent me a sample project that uses forms if
possible. I need to knw wr anw hw to create forms, should we include
anything in settings.py or urls.py?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



request parsing

2008-12-09 Thread Vicky

If we send a file by post method to a django function how can we
separate the file from the request?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



templates database access

2008-12-08 Thread Vicky

Is there any way to insert, retrieve, delete and update tables in a
database from templates itself?
--~--~-~--~~~---~--~~
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: ifequals in templates

2008-12-08 Thread Vicky
Yea that was the mistake :) it wrks fine nw

On Dec 8, 3:16 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Dec 8, 9:31 am, Vicky <[EMAIL PROTECTED]> wrote:
>
>
>
> > I tried to use the code
> > below:
> >                                                {% ifequal oftype
> > 'first_name' %}
> >                                                         {% for item in 
> > datas.first_name %}
> >                                                                  {{ 
> > item }} 
> >                                                         {% endfor %}
> >                                                 {% endifequal %}
>
> >                                                 {% ifequal oftype 
> > 'last_name' %}
> >                                                         {% for item in 
> > datas.last_name %}
> >                                                                  {{ 
> > item }} 
> >                                                         {% endfor %}
> >                                                 {% endifequal %}
>
> > But it didnt even execute either of the blocks. can anyone help me
> > with this?
>
> Are you sure oftype is equal to either of these values? Try putting
> {{ oftype }} before the loop to see what it actually contains.
> --
> DR.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ifequals in templates

2008-12-08 Thread Vicky

I tried to use the code
below:
   {% ifequal oftype
'first_name' %}
{% for item in 
datas.first_name %}
 {{ item 
}} 
{% endfor %}
{% endifequal %}

{% ifequal oftype 'last_name' %}
{% for item in 
datas.last_name %}
 {{ item 
}} 
{% endfor %}
{% endifequal %}

But it didnt even execute either of the blocks. can anyone help me
with this?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



variables inside variables in templates

2008-12-07 Thread Vicky

Is there a way to use variables like:

 {{ content.{{ items}} }}

??

I need do send the object and field names to template and access
content of that field from template. This thing works:

 {{ content.name }}

But i need the thing after '.' also to be a variable. How to do 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: XML templates

2008-12-02 Thread Vicky

I did as you said. Still its giving the same error :(




On Dec 2, 11:38 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-12-01 at 22:20 -0800, Vicky wrote:
> > I tried the code below:
>
> > from django.template import loader, Context
>
> > def NewspaperSelect(request,u_id):
> >         t=loader.get_template(r'C:\django\noddler\news\template.vxml')
> >    c=Context({ 'topic':'news', 'content':pn })
> >        return HttpResponse(t.render(c), mimetype='application/xml')
>
> > I verified that the file is in the location. But when i compile it
> > keeps telling that template file does not exist. What to do?
>
> get_template() doesn't take a full path to a file. It takes the name of
> a template, possibly with some directories in front -- but it's a
> relative path. What the path is relative to depends on the template
> loader being used. Unless you've done anything special to your setup,
> Django will try the application loader first -- appending the path to
> /templates/ for each app_name that you have installed. Then it
> will try the filesystem loader, which will append the path to each
> diretcory in the TEMPLATE_DIRS setting and see if it exists.
>
> So you either need to set up TEMPLATE_DIRS or put the templates in a
> templates/ directory inside one (or more) of your applications.
>
> This ends up making the code very portable, by the way, since when you
> install it somewhere else, you only have to change the TEMPLATE_DIRS
> settings (at most) and all your templates will still load correctly.
>
> 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: XML templates

2008-12-01 Thread Vicky

I tried the code below:

from django.template import loader, Context

def NewspaperSelect(request,u_id):
t=loader.get_template(r'C:\django\noddler\news\template.vxml')
c=Context({ 'topic':'news', 'content':pn })
   return HttpResponse(t.render(c), mimetype='application/xml')

I verified that the file is in the location. But when i compile it
keeps telling that template file does not exist. What to do?



On Dec 1, 4:57 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> On Dec 1, 2008, at 7:51 PM, Vicky wrote:
>
>
>
> > Can we use XML files as templates instead of HTML?
>
> Anything that comes as a plain text file can be produced by a  
> template: HTML, XML, plain text, email, iCAL, source code...
>
> Yours,
> Eric
>
>
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



XML templates

2008-12-01 Thread Vicky

Can we use XML files as templates instead of 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: admin site problem

2008-11-18 Thread Vicky



On Nov 17, 8:35 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 17, 12:41 pm, Vicky <[EMAIL PROTECTED]> wrote:
>
> > I found the problem.. I used :
>
> >                             def __unicode__(self):
>
> > function in my model. so it a can return only sting values. So if i
> > need to return a column of type integer or contains a foreign key how
> > should i do it??
>
>     return u'%s' % self.my_integer_attribute
> or
>     return unicode(self.my_integer_attribute)
>
> This is fairly basic Python. I'd recommend going through a Python
> tutorial if you don't know any of this:www.diveintopython.orgis a
> great one.
>
> For foreign keys, Django uses the unicode of the related model anyway.
> --
> DR.


Thanks a lot guys. Actually am working on a project that uses django.
I didn't have much time to learn python. just went through the things
i need for the project. hope  will learn it soon :)
--~--~-~--~~~---~--~~
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: admin site problem

2008-11-17 Thread Vicky

I found the problem.. I used :

def __unicode__(self):

function in my model. so it a can return only sting values. So if i
need to return a column of type integer or contains a foreign key how
should i do it??




On Nov 17, 4:28 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote:
> Vicky wrote:
> > I tried to add some values to my table from admin site. Table has 3
> > columns one of integer type and other two of string type. When i tried
> > to save my entries it giving an error as:
>
> >              "coercing to Unicode: need string or buffer, int found"
>
> > How to solve it?
>
> That all depends on what your model looks like?
> /L
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



admin site problem

2008-11-17 Thread Vicky

I tried to add some values to my table from admin site. Table has 3
columns one of integer type and other two of string type. When i tried
to save my entries it giving an error as:

 "coercing to Unicode: need string or buffer, int
found"

How to solve 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
-~--~~~~--~~--~--~---