I need help

2010-05-14 Thread Hussain Deikna
Hi,
 I plan to start writing my web page and I decide to use django and sqlite3
, my web page is very simple it is look like :
 1- homepage a main page for public 'main page'.
 2- user login and it will display special information to every to group of
users
 3- admen side.
I need help in part 2 which django application I have to use?
thank you

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



i need help

2013-02-15 Thread wassim bchini
hello ;
i have a Project and i'm beginner on Django ; my project is to build web 
application to administrate FTP server , i have the program 
of administration on python (engine) and i need some information how to 
render the web application interface (pages,forms,...)  to work with engine 
,  please excuse  my poor English  :) ,thx 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




i need help

2018-08-09 Thread Aladin Masen


Please how can i use the django_markdown  with django 2

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2f9ae276-424b-490d-b1f1-126e9d3ef89e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need help

2010-05-16 Thread Baurzhan Ismagulov
On Fri, May 14, 2010 at 10:51:09AM +0200, Hussain Deikna wrote:
>  2- user login and it will display special information to every to group of
> users
...
> I need help in part 2 which django application I have to use?

I'm not aware of a ready-to-use solution; however, implementing one is
not much effort, take a look at
http://docs.djangoproject.com/en/1.1/topics/auth/#topics-auth .

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I need help

2010-05-17 Thread Jens Rantil
Hi Hussain,

Please be more descriptive in your subject line next time. It makes it
easier for everyone subscribed to the list to acknowledge if the
message is something is of interest or not.

Thank you,
Jens

On 14 Maj, 10:51, Hussain Deikna  wrote:
> Hi,
>  I plan to start writing my web page and I decide to use django and sqlite3
> , my web page is very simple it is look like :
>  1- homepage a main page for public 'main page'.
>  2- user login and it will display special information to every to group of
> users
>  3- admen side.
> I need help in part 2 which django application I have to use?
> thank you

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



Re: i need help

2013-02-17 Thread Ryan Nowakowski
On Fri, Feb 15, 2013 at 04:17:30PM -0800, wassim bchini wrote:
> hello ;
> i have a Project and i'm beginner on Django ; my project is to build web 
> application to administrate FTP server , i have the program 
> of administration on python (engine) and i need some information how to 
> render the web application interface (pages,forms,...)  to work with engine 
> ,  please excuse  my poor English  :) ,thx 

Wassim,

Please take a look at the Django tutorial[1] and then feel free to
ask specific questions.  Also, when posting, try to put something more
meaningful[2] than "i need help" in the subject.

- Ryan

1. https://docs.djangoproject.com/en/1.4/intro/tutorial01/ 
2. http://www.catb.org/esr/faqs/smart-questions.html#bespecific

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I need help

2013-02-19 Thread Russell Keith-Magee
On Wed, Feb 20, 2013 at 6:52 AM, Carlos Aguilar wrote:

> I am trying to use the User model outside of django app, but without
> successful.
>
> This is my imports section:
>
> from django.core.management import setup_environ
> from htdjango import settings
> setup_environ(settings)
>
> from django.contrib.auth import get_user_model
>
> I am trying many things but right now I am receiving this error:
>
> Traceback (most recent call last):
>   File "htuser.py", line 539, in 
> user.delete()
>   File "htuser.py", line 99, in delete
>  django_user.objects.delete()
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
> 232, in __get__
> raise AttributeError("Manager isn't accessible via %s instances" %
> type.__name__)
> AttributeError: Manager isn't accessible via HTDjangoUser instances
>

You've provided code, but not the code that is actually raising the error
(i.e., htuser.py). However, the error message does tell you exactly what
you're doing wrong -- you're attempting to access a manager, when what you
have is an instance.

Your code will be doing something like this:

> myUser = User.objects.get(username='foo')
> myUser.objects.all()

myUser is an *instance* of User. The ".objects" attribute, representing the
manager, exists for internal reasons, but you can't use it - you're trying
to access a manager on an instance.

> User.objects.all()

*would* be legal -- in this case, you're accessing the manager on the
*class*, not the instance.

Looking at your stack trace, the problem is either on line 539 or line 99
of htuser.py, where you've switched between working with an instance and
working with a model. You'll have to work out for yourself what the fix is.

Yours,
Russ Magee %-)

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I need help

2013-02-19 Thread Carlos Aguilar
I fix the error.

Thank you for your time.

The error was caused for a bad access to delete function. Thanks againg.

Best Regards


On Tue, Feb 19, 2013 at 5:55 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

>
> On Wed, Feb 20, 2013 at 6:52 AM, Carlos Aguilar wrote:
>
>> I am trying to use the User model outside of django app, but without
>> successful.
>>
>> This is my imports section:
>>
>> from django.core.management import setup_environ
>> from htdjango import settings
>> setup_environ(settings)
>>
>> from django.contrib.auth import get_user_model
>>
>> I am trying many things but right now I am receiving this error:
>>
>> Traceback (most recent call last):
>>   File "htuser.py", line 539, in 
>> user.delete()
>>   File "htuser.py", line 99, in delete
>>  django_user.objects.delete()
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
>> 232, in __get__
>> raise AttributeError("Manager isn't accessible via %s instances" %
>> type.__name__)
>> AttributeError: Manager isn't accessible via HTDjangoUser instances
>>
>
> You've provided code, but not the code that is actually raising the error
> (i.e., htuser.py). However, the error message does tell you exactly what
> you're doing wrong -- you're attempting to access a manager, when what you
> have is an instance.
>
> Your code will be doing something like this:
>
> > myUser = User.objects.get(username='foo')
> > myUser.objects.all()
>
> myUser is an *instance* of User. The ".objects" attribute, representing
> the manager, exists for internal reasons, but you can't use it - you're
> trying to access a manager on an instance.
>
> > User.objects.all()
>
> *would* be legal -- in this case, you're accessing the manager on the
> *class*, not the instance.
>
> Looking at your stack trace, the problem is either on line 539 or line 99
> of htuser.py, where you've switched between working with an instance and
> working with a model. You'll have to work out for yourself what the fix is.
>
> Yours,
> Russ Magee %-)
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Carlos Aguilar
Consultor Hardware y Software
DWD&Solutions
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: i need help

2013-02-19 Thread wassim bchini
thx ryan :)


> Please take a look at the Django tutorial[1] and then feel free to 
> ask specific questions.  Also, when posting, try to put something more 
> meaningful[2] than "i need help" in the subject. 
>
> - Ryan 
>
> 1. https://docs.djangoproject.com/en/1.4/intro/tutorial01/ 
> 2. http://www.catb.org/esr/faqs/smart-questions.html#bespecific 
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




_manipulator_validate_FOO() , i need help.

2006-02-04 Thread coulix

Where do we put the function ?
I have a model  for recipe, i want to validate the image field only,
checking the file size as explain in one of the post here.

do  i have to write a whole manipulator with all the fields and a
specific validator for image like in the documentation on  "form and
manipulator "?

or i can use the _manipulator_validate_foo(..) ? i tried  :
line 35 -36  http://django.pastebin.com/538569
but {{ form.error_dict }} does not contain the raise error message.

Any help will be more than welcome.



I NEED HELP PLEASE

2018-03-16 Thread Daniella
PLEASE I AM NEW TO DJANGO FRAME WORK. PLEASE CAN SOMEONE PUT ME THROUGH ON 
HOW TO GET STARTED, USING IT TO DEVELOP A WEBSITE AND WEB APPLICATION. 
THANKS IN ANTICIPATION

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e34ff9eb-f605-4b3a-a0a9-f319b4955183%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: i need help

2018-08-09 Thread Kasper Laudrup

Hi Aladin,

On 09/08/2018 15.07, Aladin Masen wrote:



Please how can i use the django_markdown  with django 2



You probably can't, since the library seems to be unmaintained and not 
updated for use with Django 2, unless you want to fork it and make the 
changes needed for supporting Django 2.


I have used django-markdownx:

https://neutronx.github.io/django-markdownx/

Which was just fine for my (very basic) requirements.

A better option might be to use django-markup:

https://django-markup.readthedocs.io/en/latest/index.html

I don't have any experience with that, but I plan to look into it.

Hope that helps.

Kind regards,

Kasper Laudrup

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/46ae51c1-773b-8bda-7ecd-167d790654fa%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: i need help

2018-08-11 Thread Aladin Masen
I want to use it in my admin 


Sent from my iPhone

> On Aug 9, 2018, at 7:16 PM, Kasper Laudrup  wrote:
> 
> Hi Aladin,
> 
>> On 09/08/2018 15.07, Aladin Masen wrote:
>> Please how can i use the django_markdown  with django 2
> 
> You probably can't, since the library seems to be unmaintained and not 
> updated for use with Django 2, unless you want to fork it and make the 
> changes needed for supporting Django 2.
> 
> I have used django-markdownx:
> 
> https://neutronx.github.io/django-markdownx/
> 
> Which was just fine for my (very basic) requirements.
> 
> A better option might be to use django-markup:
> 
> https://django-markup.readthedocs.io/en/latest/index.html
> 
> I don't have any experience with that, but I plan to look into it.
> 
> Hope that helps.
> 
> Kind regards,
> 
> Kasper Laudrup
> 
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/46ae51c1-773b-8bda-7ecd-167d790654fa%40stacktrace.dk.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56039CF3-9CCC-4102-BCFA-A9C7E7FE9D35%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: i need help

2018-08-12 Thread Derek
Then you'll need to overwrite/customise the admin templates; see:
http://django.readthedocs.io/en/latest/ref/contrib/admin/index.html#overriding-admin-templates

Lots of blogs also cover this topic; e.g.
http://rahmonov.me/posts/customize-django-admin-templates/
(there are may more)

On Saturday, 11 August 2018 11:58:20 UTC+2, Aladin Masen wrote:
>
> I want to use it in my admin 
>
>
> Sent from my iPhone 
>
> > On Aug 9, 2018, at 7:16 PM, Kasper Laudrup  > wrote: 
> > 
> > Hi Aladin, 
> > 
> >> On 09/08/2018 15.07, Aladin Masen wrote: 
> >> Please how can i use the django_markdown  with django 2 
> > 
> > You probably can't, since the library seems to be unmaintained and not 
> updated for use with Django 2, unless you want to fork it and make the 
> changes needed for supporting Django 2. 
> > 
> > I have used django-markdownx: 
> > 
> > https://neutronx.github.io/django-markdownx/ 
> > 
> > Which was just fine for my (very basic) requirements. 
> > 
> > A better option might be to use django-markup: 
> > 
> > https://django-markup.readthedocs.io/en/latest/index.html 
> > 
> > I don't have any experience with that, but I plan to look into it. 
> > 
> > Hope that helps. 
> > 
> > Kind regards, 
> > 
> > Kasper Laudrup 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To post to this group, send email to django...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/django-users. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/46ae51c1-773b-8bda-7ecd-167d790654fa%40stacktrace.dk.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bafb26f7-641c-4595-8668-69effe816ac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need help

2020-06-09 Thread Devender Kumar
For that you need to create a api and use ajax on javascript side to. Use
this api to push that variable either periodically or as per req


On Tue, 9 Jun, 2020, 10:24 am meera gangani, 
wrote:

> I have a html file in which i have implementing stopwatch and i have to
> that variable stored in django
>
> Here is my script.txt file is a js file, i don't know how to store js
> variables in django and stored into the database,
>  please help me out
>
> Thanking You in advance
> -Meera Gangani
>
> --
> 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/CANaPPPLYTdqUFxoDL8eTUGtMpsqdsptZKAPC6RR6h_-HuF9TdA%40mail.gmail.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/CALZ%3DbELFgWSwmH3nmYfb%3D_0adi1dgbTazPvHWfuPnKZa%3DXzFyw%40mail.gmail.com.


I need help please

2019-04-01 Thread Nanjuki Saidat
Hi all,
I am Saidat a new django developer, i need help on how to go about
this  " Change
admin portal URL to more obvious path and add link in side menu to admin
settings for admin users". In summary:


   1.  i want to change URL string to more intuitive URL (i.e.
   fhp.example.com/drunken-octo-lama/ to fhp.example.com/admin/)
   2. If a user is an admin user, show a link in the side menu to access
   admin settings page.

   Thanks.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHrBrjC-j-2Z%2Bkn-U2gKBaV24Mu3W4QFGgochC1s6906VE5Tuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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



i need help with this...

2010-04-30 Thread kandee
I just got this new phone, and was trying to download some sound
affects, from a download Page, but an error page came on and said that
I needed to go on my django setting file and change it to false so it
can display 500 pages...but I didn't find it anywhere, so I Googled it
amd it brang me here... and I was trying to download django, but it
wouldn't let me...I really want to look at those sound affects. ..can
you 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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: _manipulator_validate_FOO() , i need help.

2006-02-05 Thread coulix

i just need an example of _manipulator_validate_foo(..).



Re: I NEED HELP PLEASE

2018-03-16 Thread Dylan Reinhold
https://www.djangoproject.com/start/

On Fri, Mar 16, 2018 at 8:53 AM, Daniella 
wrote:

> PLEASE I AM NEW TO DJANGO FRAME WORK. PLEASE CAN SOMEONE PUT ME THROUGH ON
> HOW TO GET STARTED, USING IT TO DEVELOP A WEBSITE AND WEB APPLICATION.
> THANKS IN ANTICIPATION
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/e34ff9eb-f605-4b3a-a0a9-f319b4955183%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44AbegMgoegfeQ13%3DtgWdh%2B07A8NMX9WHGo0Fd13C64kRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I NEED HELP PLEASE

2018-03-16 Thread Babatunde Akinyanmi
Hi Daniella. Welcome to the django ecosystem.

As per your question, to get started with django, read the tutorial.

https://www.djangoproject.com/start/

On 16 Mar 2018 18:57, "Daniella"  wrote:

PLEASE I AM NEW TO DJANGO FRAME WORK. PLEASE CAN SOMEONE PUT ME THROUGH ON
HOW TO GET STARTED, USING IT TO DEVELOP A WEBSITE AND WEB APPLICATION.
THANKS IN ANTICIPATION

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/
msgid/django-users/e34ff9eb-f605-4b3a-a0a9-f319b4955183%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BWjgXOuqy5X_QbzB_bc-3E7Sff3h81feYxwVTaPt8RCZmzMCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I NEED HELP PLEASE

2018-03-16 Thread Etienne Robillard

Hi Daniella,

Next time you want to ask us something, please drop the caps lock key.

Etienne


Le 2018-03-16 à 11:53, Daniella a écrit :
PLEASE I AM NEW TO DJANGO FRAME WORK. PLEASE CAN SOMEONE PUT ME 
THROUGH ON HOW TO GET STARTED, USING IT TO DEVELOP A WEBSITE AND WEB 
APPLICATION. THANKS IN ANTICIPATION

--
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 post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e34ff9eb-f605-4b3a-a0a9-f319b4955183%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/84149222-e9c2-be50-3730-90901a9df965%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


Re: I NEED HELP PLEASE

2018-03-22 Thread Sadialiou Diallo


hello. first you need to be with the documentation. It is your best freind

clic here to go there
https://docs.djangoproject.com/fr/2.0/intro/
 https://docs.djangoproject.com/en/2.0/

 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5d8d452e-8d59-4867-8733-93a8a80cfc65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


I need help guys please

2019-01-22 Thread hayaay009
I can update object without sluglyfiy buy with slugyfiy I can't 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/71fe86c2-1080-499e-a4d4-72c16f2c6832%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need help please

2019-04-01 Thread dvij parekh
link is not working


On Mon, Apr 1, 2019 at 6:32 PM Nanjuki Saidat 
wrote:

> Hi all,
> I am Saidat a new django developer, i need help on how to go about this  " 
> Change
> admin portal URL to more obvious path and add link in side menu to admin
> settings for admin users". In summary:
>
>
>1.  i want to change URL string to more intuitive URL (i.e.
>fhp.example.com/drunken-octo-lama/ to fhp.example.com/admin/)
>2. If a user is an admin user, show a link in the side menu to access
>admin settings page.
>
>Thanks.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHrBrjC-j-2Z%2Bkn-U2gKBaV24Mu3W4QFGgochC1s6906VE5Tuw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHrBrjC-j-2Z%2Bkn-U2gKBaV24Mu3W4QFGgochC1s6906VE5Tuw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF-XeXapTQ5jdOUOtkV5USYhyje9sWtU8hvShEY1yC6pBQ51zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need help please

2019-04-01 Thread Joel Mathew
It's supposed to be an example.
Sincerely yours,

 Joel G Mathew



On Mon, 1 Apr 2019 at 19:12, dvij parekh  wrote:

> link is not working
>
>
> On Mon, Apr 1, 2019 at 6:32 PM Nanjuki Saidat 
> wrote:
>
>> Hi all,
>> I am Saidat a new django developer, i need help on how to go about this
>> " Change admin portal URL to more obvious path and add link in side menu
>> to admin settings for admin users". In summary:
>>
>>
>>1.  i want to change URL string to more intuitive URL (i.e.
>>fhp.example.com/drunken-octo-lama/ to fhp.example.com/admin/)
>>2. If a user is an admin user, show a link in the side menu to access
>>admin settings page.
>>
>>Thanks.
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHrBrjC-j-2Z%2Bkn-U2gKBaV24Mu3W4QFGgochC1s6906VE5Tuw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHrBrjC-j-2Z%2Bkn-U2gKBaV24Mu3W4QFGgochC1s6906VE5Tuw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF-XeXapTQ5jdOUOtkV5USYhyje9sWtU8hvShEY1yC6pBQ51zw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF-XeXapTQ5jdOUOtkV5USYhyje9sWtU8hvShEY1yC6pBQ51zw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA%3Diw_9pa3ZyW9%2Ba4VWSYMFSY-3wsZ%2BBFvppJvwZrR0kTdQrXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need help please

2019-04-01 Thread dvij parekh
1. go and change admin url to drunke-octo-lama in main urls file i.e where 
your setting.py and wsgi.py is present
2. put {% url 'path_to_adminpannel/drunke-octo-lama' %}

hope this helps you else please elaborate problem so i can get it right 

On Monday, April 1, 2019 at 6:32:31 PM UTC+5:30, Nanjuki Saidat wrote:
>
> Hi all,
> I am Saidat a new django developer, i need help on how to go about this  " 
> Change 
> admin portal URL to more obvious path and add link in side menu to admin 
> settings for admin users". In summary:
>
>
>1.  i want to change URL string to more intuitive URL (i.e. 
>fhp.example.com/drunken-octo-lama/ to fhp.example.com/admin/)
>2. If a user is an admin user, show a link in the side menu to access 
>admin settings page.
>
>Thanks.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5916908f-b503-4d35-b4a5-6c8808d61702%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


hello guys I need help

2022-08-29 Thread ISTEEN ISAC
I am beginner ,  how to redirect different types of pages to different 
users after login in django 

 ?  

-- 
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/90a18a68-d66f-44d9-82e5-4498fa6c5fcen%40googlegroups.com.


hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
i have created a group named adminis. how to create users in the group 
using django admin

-- 
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/45e78c82-e392-4a3e-83ec-a0e2d7189f3fn%40googlegroups.com.


Re: i need help with this...

2010-05-01 Thread akonsu
hello, i myself cannot parse this. what is the question?

On Apr 30, 10:16 pm, kandee  wrote:
> I just got this new phone, and was trying to download some sound
> affects, from a download Page, but an error page came on and said that
> I needed to go on my django setting file and change it to false so it
> can display 500 pages...but I didn't find it anywhere, so I Googled it
> amd it brang me here... and I was trying to download django, but it
> wouldn't let me...I really want to look at those sound affects. ..can
> you 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-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

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



Re: i need help with this...

2010-05-01 Thread Kev
kandee wrote:

> I just got this new phone, and was trying to download some sound
> affects, from a download Page, but an error page came on and said that
> I needed to go on my django setting file and change it to false so it
> can display 500 pages...but I didn't find it anywhere, so I Googled it
> amd it brang me here... and I was trying to download django, but it
> wouldn't let me...I really want to look at those sound affects. ..can
> you help me...?..
>

Hello,

If I understand you correctly, I think the instruction to change the
django wtting is really meant for the django site's webmaster - it 
isn't something that you can do yourself.

You need to contact the download site's webmaster, explain that 
there's a problem with the site and ask them to fix it.

Cheers,

Kev


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



Re: I need help guys please

2019-01-22 Thread abel otugeme
Zucchixz, z, nix, zx
On Jan 22, 2019 4:47 PM,  wrote:

> I can update object without sluglyfiy buy with slugyfiy I can't
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/71fe86c2-1080-499e-a4d4-72c16f2c6832%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMrS0S8V80ThBvJpogiE6h_RfAAhdC6dkgX3%2BoSy%3D4LZbDFx7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need help guys please

2019-01-23 Thread Nelson Varela
Say what 

> Say what?
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/49402962-6631-446e-8c71-24526b4bf9db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hello guys I need help

2022-08-29 Thread bode moses
please I'm a starter on python and django, i need some to help me with an 
online class training. 

Thank 
Moses 

On Monday, August 29, 2022 at 3:06:26 PM UTC+1 istee...@gmail.com wrote:

> I am beginner ,  how to redirect different types of pages to different 
> users after login in django 
> 
>  ?  

-- 
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/c5ea9827-410c-4d05-bb6c-2a7e4b875f27n%40googlegroups.com.


Re: hello guys I need help

2022-08-30 Thread Joshua Oriakhi
Hello Bode.
When you say different types of pages what do you mean?

Do you mean you want users to see pages specific to them?

For instance, if my name is Joshua, you want me to see a page with my name
and if your name is Bode, you want me to see a page with your name. Is this
what you mean?

On Mon, 29 Aug 2022, 17:02 bode moses,  wrote:

> please I'm a starter on python and django, i need some to help me with an
> online class training.
>
> Thank
> Moses
>
> On Monday, August 29, 2022 at 3:06:26 PM UTC+1 istee...@gmail.com wrote:
>
>> I am beginner ,  how to redirect different types of pages to different
>> users after login in django
>> 
>>  ?
>
> --
> 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/c5ea9827-410c-4d05-bb6c-2a7e4b875f27n%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/CAMSS1fDJHOtC3o5K30mi9aOAETtHBeH%3D1ZTdFUbCqECo1DSGbQ%40mail.gmail.com.


Re: hello guys I need help

2022-08-30 Thread Rotimi Michael james
my name is engr rotimi michael james , i think i can help you please just
make the model  one to one relations , that is  one user to a page and a
page to one user, hope it help.

On Mon, Aug 29, 2022 at 3:06 PM ISTEEN ISAC  wrote:

> I am beginner ,  how to redirect different types of pages to different
> users after login in django
> 
>  ?
>
>
> --
> 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/90a18a68-d66f-44d9-82e5-4498fa6c5fcen%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/CAKbLKW3_q1ZaOO47mc9X%2B%3D8dUJ4rSCF9Z3C-S2VP8n4WLFiSAw%40mail.gmail.com.


Re: hello guys I need help

2022-08-30 Thread Baber Ibrar
Please share your query
On Monday, August 29, 2022 at 9:02:05 PM UTC+5 bod...@gmail.com wrote:

> please I'm a starter on python and django, i need some to help me with an 
> online class training. 
>
> Thank 
> Moses 
>
> On Monday, August 29, 2022 at 3:06:26 PM UTC+1 istee...@gmail.com wrote:
>
>> I am beginner ,  how to redirect different types of pages to different 
>> users after login in django 
>> 
>>  ?  
>
>

-- 
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/7b3a67b4-4a3f-46cd-a145-0fde34c6e2a1n%40googlegroups.com.


Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_create_user.php 
check this one out.

On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:

> i have created a group named adminis. how to create users in the group 
> using django admin
>
>

-- 
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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%40googlegroups.com.


Re: hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
thanks a lot


Le jeu. 17 août 2023 à 16:38, ivan harold  a
écrit :

> https://www.w3schools.com/django/django_admin_create_user.php
> check this one out.
>
> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>
>> i have created a group named adminis. how to create users in the group
>> using django admin
>>
>> --
> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/CAK9RMT2DRKUkiVUufEzcya%3Dh91%2BMfQuQS%2BLQhcy5J2XTG406Sw%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
the problem is i don't see users  in admin.i only see groups. do not know
why.


Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE 
a écrit :

> thanks a lot
>
>
> Le jeu. 17 août 2023 à 16:38, ivan harold  a
> écrit :
>
>> https://www.w3schools.com/django/django_admin_create_user.php
>> check this one out.
>>
>> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>>
>>> i have created a group named adminis. how to create users in the group
>>> using django admin
>>>
>>> --
>> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/CAK9RMT3MKx9FZ7uwUwLndMgEoPYb3W8a7Otn0zTGUGWaK9G88w%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_include_members.php
explore the site maybe what you are ooking for is in there 
check this one. 

On Thursday, August 17, 2023 at 11:53:00 AM UTC-5 Abdoulaye SENE wrote:

> the problem is i don't see users  in admin.i only see groups. do not know 
> why.
>
>
> Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE  a 
> écrit :
>
>> thanks a lot
>>
>>
>> Le jeu. 17 août 2023 à 16:38, ivan harold  a 
>> écrit :
>>
>>> https://www.w3schools.com/django/django_admin_create_user.php 
>>> check this one out.
>>>
>>> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>>>
 i have created a group named adminis. how to create users in the group 
 using django admin

 -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/5a1d8fa0-8eeb-4502-a9dc-b6b3abbfe3f0n%40googlegroups.com.


I need help on Keycloak with django

2020-06-12 Thread Raghavendra AK
I'm training to implement keycloak with django using 
https://github.com/jhuapl-boss/boss-oidc but getting error : *Could not 
import 'path.to.function' for API setting 'LOAD_USER_ROLES'. 
ModuleNotFoundError: No module named 'path'*

I really appreciate your help or any sample code

-- 
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/f9548534-afd0-4ff5-9dcf-ab3fc48bc609o%40googlegroups.com.


I need help with reverse and url patterns

2011-08-20 Thread Joshua Russo
I setup this patter in url.py

url(r'^events/(?P\d{4})/(?P\d{2})/$', events, 
name="eventsMonth")

in my template I have this tag

{% url eventsMonth year=month.prev.year month=month.prev.month %}

but I keep getting 

Caught NoReverseMatch while rendering: Reverse for 'eventsMonth' with 
arguments '()' and keyword arguments '{'month': 7, 'year': 2011}' not found.

I traced the problem into the reverse() code and the logic goes all the way 
to the end, when the following statement from line 325 of 
core/urlresolvers.py fails and I can't figure out why

if re.search(u'^%s' % pattern, candidate, re.UNICODE):

The pattern is 
'events/(?P\\d{4})/(?P\\d{2})/$'
and the candidate is 
u'events/2011/7/'

Why doesn't that regular expression match? What am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/HexbsXNrkKAJ.
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: I need help on Keycloak with django

2020-06-12 Thread Kasper Laudrup

Hi Raghavendra,

On 12/06/2020 12.00, Raghavendra AK wrote:
I'm training to implement keycloak with django using 
https://github.com/jhuapl-boss/boss-oidc but getting error : *Could not 
import 'path.to.function' for API setting 'LOAD_USER_ROLES'. 
ModuleNotFoundError: No module named 'path'*

*
*


You need to actually modify the settings.py file according to the 
comments in the file. Not just copy it and expect everything to 
magically work however you want it.


Kind regards,

Kasper Laudrup

--
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/2a7663e6-10f9-e07b-3cc3-f8052a647ff5%40stacktrace.dk.


Re: I need help with reverse and url patterns

2011-08-20 Thread Joshua Russo
Never mind I got it. I changed my url patter to 

url(r'^events/(?P\d{4})/(?P\d{1,2})/$', events, 
name="eventsMonth")

I'm still not very sharp on my regex skills. I realized that {2} required a 
2 digit number

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/bZU9C0CBpTwJ.
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: I need help with reverse and url patterns

2011-08-20 Thread Daniel Roseman
On Saturday, 20 August 2011 20:20:12 UTC+1, Joshua Russo wrote:
>
> I setup this patter in url.py
>
> url(r'^events/(?P\d{4})/(?P\d{2})/$', events, 
> name="eventsMonth")
>
> in my template I have this tag
>
> {% url eventsMonth year=month.prev.year month=month.prev.month %}
>
> but I keep getting 
>
> Caught NoReverseMatch while rendering: Reverse for 'eventsMonth' with 
> arguments '()' and keyword arguments '{'month': 7, 'year': 2011}' not found.
>
> I traced the problem into the reverse() code and the logic goes all the way 
> to the end, when the following statement from line 325 of 
> core/urlresolvers.py fails and I can't figure out why
>
> if re.search(u'^%s' % pattern, candidate, re.UNICODE):
>
> The pattern is 
> 'events/(?P\\d{4})/(?P\\d{2})/$'
> and the candidate is 
> u'events/2011/7/'
>
> Why doesn't that regular expression match? What am I doing wrong?
>


Because there's only one digit in the month (7), and it's expecting two. 

Either change your code to pad the month to two digits, or change the regex 
to /(?P\d{1,2})/$

--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/588gFtIFPKUJ.
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 doing a linked lookup in admin

2013-04-26 Thread Richard E. Cooke
I used the *django-contacts *project as my starting point for a company 
contact database.  Its really cool, it keeps "addresses", "phone numbers", 
etc in seperate db table so you can associate as many as you need to each 
company or person record.  It uses *django.contrib.contenttype*s for its 
relations.  Which is also pretty cool since that lets you attach comments 
to any other record!

Anyway, I want to build on this by adding an Inventory and Purchasing 
system.

In my Inventory model I have a field for supplier:

  supplier = models.ForeignKey('contacts.Company', blank=True, null=True)

Which works perfect, you get a pop-up list to pick the lucky vendor from.  
Later I might add a filter to limit the choices to a particular type of 
company - like vendors.  But this is fine for now.

A company record can (and will) have multiple "StreetAddresses" records 
associated with it through a GenericRelation.  For the PO I want to be able 
to select one out of that set of addresses.

So for a test, I tried:

  ship_to = models.ForeignKey('contacts.StreetAddress', 
limit_choices_to={'content_type':27, 'object_id':1, 'location':'shipto'}, 
blank=True, null=True)

"content_type", "object_id" are the content types fields used to control 
the Generic Relation.  And those values correspond to pk=1 for records of 
type "company".  And the "location" field indicates the type of address 
record.

This works.  I get a list of "ship to" addresses for the company (pk=1).

So, now I want to re-jig this to use the current PO record's setting for 
"supplier" to automatically limit the address selection.

There might be a way to capitalize on the fact that *supplier.street_address
*  is a *GenericRelatedObjectManager* seeded with the right values.  

In shell, I read in a PO record with *a = PO.objects.get(pk=1)*
Then I enter *a.supplier.street_address.filter(location="shipto")* I get a 
list of all the "shipto" addresses for the supplier!  Exactly the list I 
want to be able to pick one from.

But I haven't a clue how to make use of this in the Admin system.  Any 
ideas appreciated!

I tried making a ForeignKey field to the StreetAddress db, and filter it 
using values from the supplier record currently in memory:
  ship_to = models.ForeignKey('contacts.StreetAddress', 
limit_choices_to={'content_type':F('po__supplier__street_address__content_type__id'),
 
'object_id':F('po__supplier__pk'),}, blank=True, null=True)

In Admin, this returns an empty list of addresses.  

To debug, I went into shell, and tried:
b = 
StreetAddress.objects.filter(content_type=F('po__supplier__street_address__content_type__id'))
  

>>> b
[]

does "F()" write a log someplace that will tell me where this falls apart?  
Well, I don't see how it would know what PO record to get "supplier" from.  
Or maybe its better to say I don't understand how it determines where to 
get any of its data from when your walking relations.The Django manual 
entry for 1.4 is pretty vague on details. 

Or, is there a better way to do this?

Thanks in Advance!



-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




I need help with getting latest object after filtering

2021-05-10 Thread Francis Akabo
Hi Everyone!
I am working on a project that is supposed to allow users to transfer files 
amongst each other. A transferred file can only be viewed by the user to 
whom the file has been transferred or an is_staff account.

*My Model*
class File(models.Model):
TYPES = (
('GENERAL', 'General'),
('PERSONAL', 'Personal'),
)
type = models.CharField(max_length=10, choices=TYPES, default='Personal')
no = models.CharField(max_length=250, unique=True, null=True)
name = models.CharField(max_length=250, unique=True, null=True)
created = models.DateTimeField(auto_now_add=True, null=True)
updated = models.DateTimeField(auto_now=True)
class Meta:
ordering = ('-created',)

def __str__(self):
return f'{self.no}'

def get_absolute_url(self):
return reverse('outgoing_file', args=[self.pk])

class Transfer(models.Model):
STATES = (
('OUTGOING', 'Outgoing'),
('INCOMING', 'Incoming'),
)
file = models.ForeignKey('File', on_delete=models.CASCADE, 
related_name='transfers')
state = models.CharField(max_length=10, choices=STATES, 
default='Outgoing')
file_from = models.ForeignKey(User, on_delete=models.SET_NULL, 
null=True, related_name='transfers_from')
file_to = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, 
related_name='transfers_to')
recipient_name = models.CharField(max_length=250)
incoming_date = models.DateTimeField(auto_now=True)
due_date = models.DateTimeField(default=due_date(), null=True)
updated = models.DateTimeField(auto_now=True)
def __str__(self):
return f'{self.file_from} {self.file_to}'

*My Views*
@login_required
def outgoing_file_list(request):
if request.user.is_staff:
files = File.objects.all()
else:
files = File.objects.filter(transfers__file_to_id=request.user.id)

context = {
'files': files,
}
*NOTE:*
When the same file is transferred to a user multiple times, I want the 
query to return the newest item only. That to me will make the file 
accessible per user. Any recommended approach to achieve this is welcome.

*My Template*
**
*#*
*File Type*
*File Number*
*File Name*
*Recipient Name*
*Office Number*
*Transferred To*
*Outgoing Date*
*Due Date*
*Actions*
**
**
**
*{% for file in files %}*
**
*{{ forloop.counter }}*
*{{ file.type }}*
*{{ file.no }}*
*{{ file.name | title  }}*
*{{ file.transfers.recipient_name 
}}*
*{{ file.transfers.recipient_office 
}}*
*{{ file.transfer_to.get_full_name 
}}*
*{{ file.outgoing_date.date }}*
*{{ file.due_date | timeuntil }}*
**
*{% if request.user.is_staff %}*
**
*Receive*
**
**
*{% endif %}*

**
*Transfer*
**
**
**
**
*{% endfor %}*

*NOTE: All related fields in the table do not show ie.*
*file.transfers.recipient_name*
*file.transfers.recipient_office*
*file.transfer_to.get_full_name*
*and the remaining.*

Thanks.

-- 
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/801238dc-3aff-4bd6-8863-726eb024a163n%40googlegroups.com.


I need help with saving data to django database.

2022-08-16 Thread Viando Donwasta
Hi,
May I get help with this project? I am new to Django. Below is my view and 
model for your review.


class Invoice(models.Model):

InvoiceNo = ShortUUIDField(length=16,
prefix="GN_",
alphabet="1234567890",
primary_key=True,
)
InvoiceDate = models.DateField(default=datetime.now, blank=True)
Account = models.CharField(max_length=50, blank=True)
PaymentDueDate = models.DateField(default=datetime.now, blank=True)
Location  = models.ForeignKey(Location, on_delete=models.DO_NOTHING, 
blank=True, default=1)
   # Product  = models.ForeignKey(Product, on_delete=models.DO_NOTHING)
Test = models.ManyToManyField("Products", blank=True, 
related_name="products")
Address   = models.ForeignKey(Address, on_delete=models.DO_NOTHING)
#Quantity = models.IntegerField(blank=True, default=1)
Tax = models.IntegerField(default =0)
SubTotal = models.DecimalField(blank=True, 
null=True,decimal_places=2,max_digits=10)
Total = models.DecimalField(blank=True, 
null=True,decimal_places=2,max_digits=10)
#Ful = models.FloatField(blank=True)

def save(self, *args, **kwargs):
#rate = Product.objects.get(pk=self.Product.id 
)
test = Products.objects.all()
total = 0
for my in test:
total +=  my.SubTotal
self.SubTotal = total
self.Total = self.SubTotal + self.Tax
#self.Total = Sum(self.Total) + Sum( self.SubTotal)
super(Invoice, self).save(*args, **kwargs)

# @property
# def PerformSub(self):
#  myval = self.Quantity * self.Product.Price
#  return myval

# @property
# def PerformCal(self):
# self.Total = self.SubTotal + self.Tax

# def __str__(self):
# return self.InvoiceNo




class Products(models.Model):
ProductDate = models.DateField(default=datetime.now, blank=True)
Title = models.CharField(max_length=50, blank=True)
Description = models.CharField(max_length=150, blank=True)
Sku = models.CharField(max_length=50, blank=True)
Price = models.FloatField(blank=True)
Quantity = models.IntegerField(blank=True, default=1)
SubTotal = models.DecimalField(blank=True, 
null=True,decimal_places=2,max_digits=10)
SalesPrice = models.CharField(max_length=50, blank=True)


def save(self, *args, **kwargs):
   # rate = Products.objects.get(pk=self.Product.id 
)
self.SubTotal = self.Price * self.Quantity
super(Products, self).save(*args, **kwargs)


def __str__(self):
return self.Title + "" + self.Description


class InvoiceForm(ModelForm):
class Meta:
model = Invoice
fields = ['InvoiceNo', 'InvoiceDate', 'Account','PaymentDueDate', 
'Location','Test', 'Address', 'Tax', 'SubTotal', 'Total'
]



Here is my view. Any help will be much appreciated thank you .





def dashboard(request):

# forms = admin.get_form(invoices, res)
location = Location.objects.all()
address = Address.objects.all()
products = Products.objects.all()
form = InvoiceForm()
# invoice = Invoice.objects.all()
# invoice = get_object_or_404(Invoice)

if request.method == 'POST':
form = InvoiceForm(request.POST)
if form.is_valid():
# myinvoice = form.save(commit=False)

print("test")

invoiceTest = form.save(commit=True)



invoice = Invoice()
invoice.InvoiceNo = form.cleaned_data['InvoiceNo']
invoice.InvoiceDate = form.cleaned_data['InvoiceDate']
invoice.Account = form.cleaned_data['Account']
invoice.PaymentDueDate = form.cleaned_data['PaymentDueDate']
invoice.Location = form.cleaned_data['Location']
invoice.Test =  form.cleaned_data['Test']
invoice.Tax = form.cleaned_data['Tax']
invoice.SubTotal = form.cleaned_data['SubTotal']
invoice.Total = form.cleaned_data['Total']




invoiceTest.save()
# invoice.save_m2m()

# print(invoiceForm)




# invoice = 
Invoice(InvoiceNo=InvoiceNo,InvoiceDate=InvoiceDate,Account=Account,PaymentDueDate=PaymentDueDate,Location=mylocation,Tax=Tax,SubTotal=SubTotal,Total=Total)
# invoice.save()


return HttpResponseRedirect('index')


else:
form = InvoiceForm()
# return redirect('dashboard')
return render(request, 'pages/dashboard.html', { "form" :form , 
'Location': location, 'Address': address, 'Products': products})

-- 
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/59e95c89-1d77-4a61-9d1e-bd7846ca3c35n%40googlegroups.com.


Re: I need help doing a linked lookup in admin

2013-04-29 Thread Richard E. Cooke
I'm getting closer!  

First I found this note in the Content Types docs that explains why what I 
was doing does NOT work:
https://docs.djangoproject.com/en/1.4/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey

*Due to the way 
GenericForeignKeyis
 implemented, you cannot use such fields directly with filters (
filter() and exclude(), for example) via the database API.*


Then I found this sample code in the admin docs:
https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey


That I adapted to this for my admin form:
def formfield_for_foreignkey(self, db_field, request, **kwargs):
if db_field.name == "ship_to":
kwargs["queryset"] = 
StreetAddress.objects.filter(po__supplier__street_address__location="shipto")
return super(POAdmin, self).formfield_for_foreignkey(db_field, 
request, **kwargs)

Note that while this is my "PO" data model, I used the model belonging to 
the address data "StreetAddress".  This is because which model does the 
object.filter() is the one whose __unicode__ function is called to get a 
representation of each record found for the list selection dialogue.  Which 
means, for my PO database, it describes each address by its PO number 
(which are the same number) making it hard to tell the addresses apart!  By 
using the StreetAddress model, it uses its __unicode__ instead, which makes 
a mini-summary of each address.  Much clearer.


This is not a perfect solution though because when I try to SAVE an edited 
PO record I get an error:

MultipleObjectsReturned: get() returned more than one StreetAddress -- it 
returned 2! Lookup parameters were {'id': u'2'}


I'm going to go back to letting it list all "ship to" addresses for all 
companies until I figure out what this error even means!

Another problem is its listing both address choices with the same 
description.  Another mystery to ponder.


-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I need help with saving data to django database.

2022-08-17 Thread Paul Kudla (SCOM.CA Internet Services Inc.)



ok i had a hudge problem when writing my invoice system

in general you need to over ride the save defination in the admin and 
models.py files


this was never clearly documented in django.


I use inlines so the code gets really complicated really quickly

i have given my code you will need to muddle through it to do your own 
thing.


my code was designed to run inlines, update an invoice number from 
another form, do the math, taxes etc etc etc


it also interfaces to a customer database (kinda required for repeat 
invoices)


i did everything in admin but you should look at the models override for 
other stuff :


class InvoiceAdmin(admin.ModelAdmin):

class Invoice_Items_Inline(admin.TabularInline):
model = Invoice_Items
extra = 1

class Invoice_Payment_Inline(admin.TabularInline):
model = Invoice_Payment
extra = 1

formfield_overrides = {
		models.CharField: {'widget': TextInput(attrs={'size':'40','style': 
'height: 1em;'})},
		models.TextField: {'widget': Textarea(attrs={'rows':1, 
'cols':40,'style': 'height: 2em;'})},

}

def customer_name_sold_to(self, obj):
if (obj.sold_to):
return obj.sold_to.customer_name
return None
customer_name_sold_to.short_description = "Sold To"

def attention_sold_to(self, obj):
if (obj.sold_to):
return obj.sold_to.attention_to
return None
attention_sold_to.short_description = "Attention to"

def getinvoicebody(self, obj):


return None


def attention_ship_to(self, obj):
if (obj.ship_to):
return obj.ship_to.attention_to
return None
attention_ship_to.short_description = "Attention to"  


def invoice_paid_total(self,obj) :
obj.paid_total = float(0.00)
try :
			record = Invoice_Payment.objects.all().filter( payment_item = '%s' 
%obj.invoice_number )

for nn in range (0,len(record)) : #start the update
paid_total = float(paid_total) + 
float(record[nn].cashbook_amount)

except : pass #No entries found against this invoice

return obj.paid_total

attention_ship_to.short_description = "Attention to"  

def Print_Invoice(modeladmin, request, queryset) :
queryset.update(printed=True)

Print_Invoice.short_description = "Print Invoice(s)"


actions = [Print_Invoice]   

#('attention_sold_to','attention_ship_to'),

fieldsets = [
	('Info', {'fields': 
[('invoice_number','invoice_date'),('sold_to','ship_to',),('purchase_order','terms','currency_type','delivery_type','foreign_account',)]}), 
#,('sold_to_address',)

('#inline', {
'fields': (),
'description': 0
}),
	('Details', {'fields': 
[('sub_total'),('gst_tax_exempt','gst_tax_value','gst_tax_amount'),('hst_tax_exempt','hst_tax_value','hst_tax_amount'),('pst_tax_exempt','pst_tax_value','pst_tax_amount'),('invoice_total'),]}),

('#inline', {
'fields': (),
'description': 1
}),
	('Status', {'fields': 
[('ar_owing','printed','faxed','emailed','new_invoice'), ]}),

]


inlines = [Invoice_Items_Inline, Invoice_Payment_Inline, ]  
reorder_inlines = True
	list_display = ('invoice_number', 
'invoice_date','customer_name_sold_to','body_search','sub_total','hst_tax_amount','invoice_total','invoice_paid_total','ar_owing')


search_fields = search_with_fk(['^invoice_number',
'body_search',
])


#readonly_fields = ('sold_to_address','ship_to_address')

date_hierarchy = 'invoice_date'
ordering = ('-invoice_date','-invoice_number_sort','ar_owing')

list_per_page = 100

index = True

adminextra_fields = [
('m21', 'sold_to', Contacts_Admin.list_display),
#('fkd', 'sold_to_address', ('sold_to',)),
('m21', 'ship_to', Contacts_Admin.list_display),
#('fkd', 'ship_to_address', ('ship_to',)),
]

def save_model(self, request, obj, form, change): #This will save create
#Check to see if this will be an invoice copy
copy = False
current_invoice = obj.invoice_number
		if obj.new_invoice :	#clear the flag and save the current object then 
set new & date

obj.new_invoice = False
obj.save()
  

Re: I need help with saving data to django database.

2022-08-17 Thread Anh Nguyen
Problem is you try to use sth you can’t control it.
You should not modify admin page. Try to create a new one as your
knowledge. That way keep you learn and stay away unpredictable issues.
On Wed, 17 Aug 2022 at 20:02 Paul Kudla (SCOM.CA Internet Services Inc.) <
p...@scom.ca> wrote:

>
> ok i had a hudge problem when writing my invoice system
>
> in general you need to over ride the save defination in the admin and
> models.py files
>
> this was never clearly documented in django.
>
>
> I use inlines so the code gets really complicated really quickly
>
> i have given my code you will need to muddle through it to do your own
> thing.
>
> my code was designed to run inlines, update an invoice number from
> another form, do the math, taxes etc etc etc
>
> it also interfaces to a customer database (kinda required for repeat
> invoices)
>
> i did everything in admin but you should look at the models override for
> other stuff :
>
> class InvoiceAdmin(admin.ModelAdmin):
>
> class Invoice_Items_Inline(admin.TabularInline):
> model = Invoice_Items
> extra = 1
>
> class Invoice_Payment_Inline(admin.TabularInline):
> model = Invoice_Payment
> extra = 1
>
> formfield_overrides = {
> models.CharField: {'widget':
> TextInput(attrs={'size':'40','style':
> 'height: 1em;'})},
> models.TextField: {'widget': Textarea(attrs={'rows':1,
> 'cols':40,'style': 'height: 2em;'})},
> }
>
> def customer_name_sold_to(self, obj):
> if (obj.sold_to):
> return obj.sold_to.customer_name
> return None
> customer_name_sold_to.short_description = "Sold To"
>
> def attention_sold_to(self, obj):
> if (obj.sold_to):
> return obj.sold_to.attention_to
> return None
> attention_sold_to.short_description = "Attention to"
>
> def getinvoicebody(self, obj):
>
>
> return None
>
>
> def attention_ship_to(self, obj):
> if (obj.ship_to):
> return obj.ship_to.attention_to
> return None
> attention_ship_to.short_description = "Attention to"
>
>
> def invoice_paid_total(self,obj) :
> obj.paid_total = float(0.00)
> try :
> record = Invoice_Payment.objects.all().filter(
> payment_item = '%s'
> %obj.invoice_number )
> for nn in range (0,len(record)) : #start the update
> paid_total = float(paid_total) +
> float(record[nn].cashbook_amount)
>
> except : pass #No entries found against this invoice
>
> return obj.paid_total
>
> attention_ship_to.short_description = "Attention to"
>
> def Print_Invoice(modeladmin, request, queryset) :
> queryset.update(printed=True)
>
> Print_Invoice.short_description = "Print Invoice(s)"
>
>
> actions = [Print_Invoice]
>
> #('attention_sold_to','attention_ship_to'),
>
> fieldsets = [
> ('Info', {'fields':
> [('invoice_number','invoice_date'),('sold_to','ship_to',),('purchase_order','terms','currency_type','delivery_type','foreign_account',)]}),
>
> #,('sold_to_address',)
> ('#inline', {
> 'fields': (),
> 'description': 0
> }),
> ('Details', {'fields':
>
> [('sub_total'),('gst_tax_exempt','gst_tax_value','gst_tax_amount'),('hst_tax_exempt','hst_tax_value','hst_tax_amount'),('pst_tax_exempt','pst_tax_value','pst_tax_amount'),('invoice_total'),]}),
> ('#inline', {
> 'fields': (),
> 'description': 1
> }),
> ('Status', {'fields':
> [('ar_owing','printed','faxed','emailed','new_invoice'), ]}),
> ]
>
>
> inlines = [Invoice_Items_Inline, Invoice_Payment_Inline, ]
> reorder_inlines = True
> list_display = ('invoice_number',
>
> 'invoice_date','customer_name_sold_to','body_search','sub_total','hst_tax_amount','invoice_total','invoice_paid_total','ar_owing')
>
> search_fields = search_with_fk(['^invoice_number',
>  'body_search',
> ])
>
>
> #readonly_fields = ('sold_to_address','ship_to_address')
>
> date_hierarchy = 'invoice_date'
> ordering = ('-invoice_date','-invoice_number_sort','ar_owing')
>
> list_per_page = 100
>
> index = True
>
> adminextra_fields = [
> ('m21', 'sold_to', Contacts_Admin.list_display),
> #('fkd', 'sold_to_address', ('sold_to',)),
> ('m21', 'ship_to', Contacts_Admin.list_display),
> #('fkd', 'ship_to_address', ('ship_to',)),
> ]
>
> def save_model(self, request, obj, form, change): #This wi

I need help with my first Django project - its structure etc.

2020-09-10 Thread Mislav Jurić
Hey guys,

I went through the Django tutorial
 about 2 weeks ago
and I decided to create a website using Django. I have a couple of
questions on the structure of the Django project, but before I voice them,
I wanted to describe the features that I want my website to have:

   - there will be two types of users - companies and employees
   - both companies and employees will have a profile with basic
   information about them listed there
   - there should exist two different registration pages (depending on if
   you're a company or if you're an employee)
   - companies and employees should be able to add certain tags during
   their registration (and afterwards add/remove tags via their profile page)
   - companies and employees should be able to search for each other based
   on the tags
   - companies should be able to look at employees profiles and vice versa
   - there should exist an administrator website - he/she can remove or
   modify the profiles of both companies and employees

This may not be all the features I want in the website, but I think you get
the picture.

Here are some questions I have for you:

   1. *Do I start from where the tutorial left off and modify that?*
   2. *How many apps should my website have?* This is non-trivial for me to
   determine as I have things like 2 different types of users, viewing
   profiles etc. I'm guessing it's 1 app, but I'm not entirely sure.
   3. *How do I go about making it possible for the two types of users to
   register?* I was thinking about creating separate models for companies
   and employees and then making their registration pages different.
   4. *Can I somehow hardcode the tags that companies and employees can
   use?*

These are my questions as of now and I'm sure more will pop up during the
development. I have found some login / registration Django website building
tutorials on Google, but I wanted to check with you to see what the
official Django users say.

To recap: *I recently finished the tutorial and I want to make the website
with the features I listed. How do I do that in the least possible amount
of time, keeping my project structure and code clean and Django-like?*

Best,
Mislav

-- 
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/CABTqP_ENmcouCkdnvQgGw5eR2JEwBh6Dur2YE0z3keGMCUtn-g%40mail.gmail.com.


Please i need help in creating a Login page with Django

2023-01-18 Thread Michael R. KOOMSON
I am trying everything possible to create a basic login page with Django., 
i have tried so many videos and online tutorial, but still can't make 
anything meaningful out of it. Can anyone please take me through a 
systematic process please, since i am new here and want to take Django to 
be my friend

-- 
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/0c495fc8-ce4e-4d6f-a2d7-7b2d8478b06an%40googlegroups.com.


I need help with Python Tools for Visual Studio 2010 and Django

2012-01-22 Thread JJ Zolper
Hello everyone,

I was able to install Django to my machine and before I was using the 
command prompt. Django's path is in my Windows 7 64 bit Enterprise 
Environment variable. Python worked fine as well too. I also installed 
IPython because I heard it was useful but I haven't tried that yet. 
Everything has been good so far. I would like some input on what I am 
currently trying now.

I have gone ahead and installed IronPython. I already had Visual Studio 
2010 on my computer so I was using that. I also installed Python Tools for 
Visual Studio. As I mentioned before I already have Python 2.7.2 installed.

I was able to see the image/window in step 3 here: 
http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home

It shows the options pane for Python Tools for Visual Studio. I was able to 
see that PT4VS (Python Tools for Visual Studio) was correctly including the 
location of the Python install at C:/Python27/python.py. Everything looked 
good there as it seems that Python was incorporated into PT4VS. I was 
trying to continue through the tutorial but I was having problems. I tried 
this command: python manage.py runserver but I only recieved a traceback 
error.

Additionally in PT4VS there is a field for a startup script. I wrote one 
and here it is:

import os
import IPython
import django
os.chdir('c:\\MTDevelopment\\Django\\newartists')

This so that I could change my directory to where my startproject was set 
with all the django web framework files. Also to import IPython and django 
as you see here. That seemed to work as I anticipated.

What I am asking you is why am I not able to get the full power of Django? 
In my command prompt I wasn't inside the python interpreter and ran the 
Django commands and everything worked fine. However, I was under the 
impression that with a Python interpreter in VS that I could have 
everything come in in a start up script and just go on my way coding with 
Django having set the directory to the location of my startproject?

When I type: django and IPython into my PT4VS now I see:

>>> IPython

>>> django


so it is imported it correctly I think but I'm not able to use it. I've 
been working hard on teaching myself how to get all this set up and any 
help from you all would make my time working on this a lot easier!

Thanks so much,

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/P5AJ334Yr8YJ.
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 to get the Django bug and version data ?-I need help:)

2008-07-09 Thread BlueSky

Hello,

I am a novice. I plan to study whether the design measures can predict
fault-prone classes in Python. Through investigating, Django is a good
experimental subject.
I need the the Django bug and version data. Is there any web API for
accessing the Django bug and version databases?
It is a little fussy to download the Ticket and ChangeSet pages and
parse these pages:)

Thanks very much!

--~--~-~--~~~---~--~~
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: I need help with my first Django project - its structure etc.

2020-09-10 Thread Ogunsanya Opeyemi
1. You have to start from there
2. Yes you need two apps companies and employees
3. Yes your idea is correct
4. You can do that.

Email me if you still need help

On Thursday, September 10, 2020, Mislav Jurić 
wrote:

> Hey guys,
>
> I went through the Django tutorial
>  about 2 weeks
> ago and I decided to create a website using Django. I have a couple of
> questions on the structure of the Django project, but before I voice them,
> I wanted to describe the features that I want my website to have:
>
>- there will be two types of users - companies and employees
>- both companies and employees will have a profile with basic
>information about them listed there
>- there should exist two different registration pages (depending on if
>you're a company or if you're an employee)
>- companies and employees should be able to add certain tags during
>their registration (and afterwards add/remove tags via their profile page)
>- companies and employees should be able to search for each other
>based on the tags
>- companies should be able to look at employees profiles and vice versa
>- there should exist an administrator website - he/she can remove or
>modify the profiles of both companies and employees
>
> This may not be all the features I want in the website, but I think you
> get the picture.
>
> Here are some questions I have for you:
>
>1. *Do I start from where the tutorial left off and modify that?*
>2. *How many apps should my website have?* This is non-trivial for me
>to determine as I have things like 2 different types of users, viewing
>profiles etc. I'm guessing it's 1 app, but I'm not entirely sure.
>3. *How do I go about making it possible for the two types of users to
>register?* I was thinking about creating separate models for companies
>and employees and then making their registration pages different.
>4. *Can I somehow hardcode the tags that companies and employees can
>use?*
>
> These are my questions as of now and I'm sure more will pop up during the
> development. I have found some login / registration Django website building
> tutorials on Google, but I wanted to check with you to see what the
> official Django users say.
>
> To recap: *I recently finished the tutorial and I want to make the
> website with the features I listed. How do I do that in the least possible
> amount of time, keeping my project structure and code clean and
> Django-like?*
>
> Best,
> Mislav
>
> --
> 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/CABTqP_ENmcouCkdnvQgGw5eR2JEwBh6Dur2Y
> E0z3keGMCUtn-g%40mail.gmail.com
> 
> .
>


-- 
OGUNSANYA OPEYEMI

-- 
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/CABJxPrERGV2UK-eSG-Kg7%3DNavTqw1NdxFBgWGeBfd%2BUK4dB4Eg%40mail.gmail.com.


Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Mislav Jurić
Hey Ogunsanya,

before you responded, I started following through the tutorial again, 
modifying the code as needed.* I created one app and in that app I have two 
models* - one for employees, one for companies. I created different URL 
structure and views for employees and companies.

However, as I stated, I only have one app which manages both the employees 
and the companies. You stated that:

*2. Yes you need two apps companies and employees*

*Can you tell me what's the difference between having those two separated 
in different apps vs me just having one app for them both (as I already 
have)?* Will my code be easier to manage if I have them separated in 
different apps? I will, for practice, continue going through the tutorial 
and modifying what I already have, but I'm willing to start from scratch 
with the new design.

It would be immensely helpful for me if you could, in a paragraph or two, 
describe how you would do it (how many apps, how to interconnect them, 
etc.).

Best,
Mislav
Dana četvrtak, 10. rujna 2020. u 15:39:45 UTC+2 korisnik Ogunsanya Opeyemi 
napisao je:

> 1. You have to start from there
> 2. Yes you need two apps companies and employees
> 3. Yes your idea is correct
> 4. You can do that.
>
> Email me if you still need help
>
> On Thursday, September 10, 2020, Mislav Jurić  
> wrote:
>
>> Hey guys,
>>
>> I went through the Django tutorial 
>>  about 2 weeks 
>> ago and I decided to create a website using Django. I have a couple of 
>> questions on the structure of the Django project, but before I voice them, 
>> I wanted to describe the features that I want my website to have:
>>
>>- there will be two types of users - companies and employees
>>- both companies and employees will have a profile with basic 
>>information about them listed there
>>- there should exist two different registration pages (depending on 
>>if you're a company or if you're an employee)
>>- companies and employees should be able to add certain tags during 
>>their registration (and afterwards add/remove tags via their profile 
>> page) 
>>- companies and employees should be able to search for each other 
>>based on the tags
>>- companies should be able to look at employees profiles and vice 
>>versa
>>- there should exist an administrator website - he/she can remove or 
>>modify the profiles of both companies and employees
>>
>> This may not be all the features I want in the website, but I think you 
>> get the picture.
>>
>> Here are some questions I have for you:
>>
>>1. *Do I start from where the tutorial left off and modify that?*
>>2. *How many apps should my website have?* This is non-trivial for me 
>>to determine as I have things like 2 different types of users, viewing 
>>profiles etc. I'm guessing it's 1 app, but I'm not entirely sure.
>>3. *How do I go about making it possible for the two types of users 
>>to register?* I was thinking about creating separate models for 
>>companies and employees and then making their registration pages 
>> different.
>>4. *Can I somehow hardcode the tags that companies and employees can 
>>use?*
>>
>> These are my questions as of now and I'm sure more will pop up during the 
>> development. I have found some login / registration Django website building 
>> tutorials on Google, but I wanted to check with you to see what the 
>> official Django users say.
>>
>> To recap: *I recently finished the tutorial and I want to make the 
>> website with the features I listed. How do I do that in the least possible 
>> amount of time, keeping my project structure and code clean and 
>> Django-like?*
>>
>> Best,
>> Mislav
>>
>> -- 
>> 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/CABTqP_ENmcouCkdnvQgGw5eR2JEwBh6Dur2YE0z3keGMCUtn-g%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> OGUNSANYA OPEYEMI
>
>

-- 
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/3d7529a6-6e37-47d4-aa16-b3180539135cn%40googlegroups.com.


Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Mislav Jurić
Hey Ogunsanya,

before you responded, I started following through the tutorial again, 
modifying the code as needed.* I created one app and in that app I have two 
models* - one for employees, one for companies. I created different URL 
structure and views for employees and companies.

However, as I stated, I only have one app which manages both the employees 
and the companies. You stated that:

*2. Yes you need two apps companies and employees*

*Can you tell me what's the difference between having those two separated 
in different apps vs me just having one app for them both (as I already 
have)?* Will my code be easier to manage if I have them separated in 
different apps? I will, for practice, continue going through the tutorial 
and modifying what I already have, but I'm willing to start from scratch 
with the new design.

It would be immensely helpful for me if you could, in a paragraph or two, 
describe how you would do it (how many apps, how to interconnect them, how 
to do the register/login functionality and should I use tutorials available 
on Google for that etc.).

Best,
Mislav


Dana četvrtak, 10. rujna 2020. u 15:39:45 UTC+2 korisnik Ogunsanya Opeyemi 
napisao je:

> 1. You have to start from there
> 2. Yes you need two apps companies and employees
> 3. Yes your idea is correct
> 4. You can do that.
>
> Email me if you still need help
>
> On Thursday, September 10, 2020, Mislav Jurić  
> wrote:
>
>> Hey guys,
>>
>> I went through the Django tutorial 
>>  about 2 weeks 
>> ago and I decided to create a website using Django. I have a couple of 
>> questions on the structure of the Django project, but before I voice them, 
>> I wanted to describe the features that I want my website to have:
>>
>>- there will be two types of users - companies and employees
>>- both companies and employees will have a profile with basic 
>>information about them listed there
>>- there should exist two different registration pages (depending on 
>>if you're a company or if you're an employee)
>>- companies and employees should be able to add certain tags during 
>>their registration (and afterwards add/remove tags via their profile 
>> page) 
>>- companies and employees should be able to search for each other 
>>based on the tags
>>- companies should be able to look at employees profiles and vice 
>>versa
>>- there should exist an administrator website - he/she can remove or 
>>modify the profiles of both companies and employees
>>
>> This may not be all the features I want in the website, but I think you 
>> get the picture.
>>
>> Here are some questions I have for you:
>>
>>1. *Do I start from where the tutorial left off and modify that?*
>>2. *How many apps should my website have?* This is non-trivial for me 
>>to determine as I have things like 2 different types of users, viewing 
>>profiles etc. I'm guessing it's 1 app, but I'm not entirely sure.
>>3. *How do I go about making it possible for the two types of users 
>>to register?* I was thinking about creating separate models for 
>>companies and employees and then making their registration pages 
>> different.
>>4. *Can I somehow hardcode the tags that companies and employees can 
>>use?*
>>
>> These are my questions as of now and I'm sure more will pop up during the 
>> development. I have found some login / registration Django website building 
>> tutorials on Google, but I wanted to check with you to see what the 
>> official Django users say.
>>
>> To recap: *I recently finished the tutorial and I want to make the 
>> website with the features I listed. How do I do that in the least possible 
>> amount of time, keeping my project structure and code clean and 
>> Django-like?*
>>
>> Best,
>> Mislav
>>
>> -- 
>> 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/CABTqP_ENmcouCkdnvQgGw5eR2JEwBh6Dur2YE0z3keGMCUtn-g%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> OGUNSANYA OPEYEMI
>
>

-- 
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/190c4ca9-7fc3-4979-9176-aa1c3d127d42n%40googlegroups.com.


Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Ogunsanya Opeyemi
Hi,
So the reason why i said two apps is that you would be able to manage them
very well and your work will be clean. Also if there is any issue with
employee you would know that that issue is coming from the employee app
likewise companies.
So to interconnect them you need to add the two apps inside your project
settings file. And look for online tutorials on how to do the
register/login.

You can mail me through ogunsanyaopeye...@gmail.com if you still need help
or chat me on whatsapp +2349062351846.
Best

On Thursday, September 10, 2020, Mislav Jurić 
wrote:

> Hey Ogunsanya,
>
> before you responded, I started following through the tutorial again,
> modifying the code as needed.* I created one app and in that app I have
> two models* - one for employees, one for companies. I created different
> URL structure and views for employees and companies.
>
> However, as I stated, I only have one app which manages both the employees
> and the companies. You stated that:
>
> *2. Yes you need two apps companies and employees*
>
> *Can you tell me what's the difference between having those two separated
> in different apps vs me just having one app for them both (as I already
> have)?* Will my code be easier to manage if I have them separated in
> different apps? I will, for practice, continue going through the tutorial
> and modifying what I already have, but I'm willing to start from scratch
> with the new design.
>
> It would be immensely helpful for me if you could, in a paragraph or two,
> describe how you would do it (how many apps, how to interconnect them, how
> to do the register/login functionality and should I use tutorials available
> on Google for that etc.).
>
> Best,
> Mislav
>
>
> Dana četvrtak, 10. rujna 2020. u 15:39:45 UTC+2 korisnik Ogunsanya Opeyemi
> napisao je:
>
>> 1. You have to start from there
>> 2. Yes you need two apps companies and employees
>> 3. Yes your idea is correct
>> 4. You can do that.
>>
>> Email me if you still need help
>>
>> On Thursday, September 10, 2020, Mislav Jurić 
>> wrote:
>>
>>> Hey guys,
>>>
>>> I went through the Django tutorial
>>>  about 2 weeks
>>> ago and I decided to create a website using Django. I have a couple of
>>> questions on the structure of the Django project, but before I voice them,
>>> I wanted to describe the features that I want my website to have:
>>>
>>>- there will be two types of users - companies and employees
>>>- both companies and employees will have a profile with basic
>>>information about them listed there
>>>- there should exist two different registration pages (depending on
>>>if you're a company or if you're an employee)
>>>- companies and employees should be able to add certain tags during
>>>their registration (and afterwards add/remove tags via their profile 
>>> page)
>>>- companies and employees should be able to search for each other
>>>based on the tags
>>>- companies should be able to look at employees profiles and vice
>>>versa
>>>- there should exist an administrator website - he/she can remove or
>>>modify the profiles of both companies and employees
>>>
>>> This may not be all the features I want in the website, but I think you
>>> get the picture.
>>>
>>> Here are some questions I have for you:
>>>
>>>1. *Do I start from where the tutorial left off and modify that?*
>>>2. *How many apps should my website have?* This is non-trivial for
>>>me to determine as I have things like 2 different types of users, viewing
>>>profiles etc. I'm guessing it's 1 app, but I'm not entirely sure.
>>>3. *How do I go about making it possible for the two types of users
>>>to register?* I was thinking about creating separate models for
>>>companies and employees and then making their registration pages 
>>> different.
>>>4. *Can I somehow hardcode the tags that companies and employees can
>>>use?*
>>>
>>> These are my questions as of now and I'm sure more will pop up during
>>> the development. I have found some login / registration Django website
>>> building tutorials on Google, but I wanted to check with you to see what
>>> the official Django users say.
>>>
>>> To recap: *I recently finished the tutorial and I want to make the
>>> website with the features I listed. How do I do that in the least possible
>>> amount of time, keeping my project structure and code clean and
>>> Django-like?*
>>>
>>> Best,
>>> Mislav
>>>
>>> --
>>> 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/CABTqP_ENmcouCkdnvQgGw5eR2JEwBh6Dur2Y
>>> E0z3keGMCUtn-g%40mail.gmail.com
>>> 

I need help on adding a search button to an input field

2019-04-03 Thread Nanjuki Saidat
Hi everyone,
I want to add a search button to an input search field , if there is anyone
who knows
how to add a button to the field in crispy form's input field. Please help
me out

https://pagure.io/fedora-commops/fedora-happiness-packets/issue/raw/files/a8846b7d72aced5bdc0a2470dc97a495fb7558d6a0908a04b369260e862d-Screenshot_2019-03-20_Open-source_Happiness_Packets.png

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHrBrjDW%2Bn-oHwdiYRpw%3DdS8HA%2BAH%2Bne3_kjmxz-UHYqPhX9ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


I need help on adding a search button to an input field

2019-04-03 Thread Mohammad Etemaddar
You can use FieldWithButtons in form helper's layout:
https://django-crispy-forms.readthedocs.io/en/d-0/layouts.html

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/59a2b90b-d146-4cf5-8047-40ed533586e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Hubert Kanyamahanga
Please share what you have been able to do, where you are blocked and from 
there we can guide you, because, we don't even know which videos you have 
been viewing!

On Wednesday, January 18, 2023 at 11:56:45 PM UTC+1 macca...@gmail.com 
wrote:

> I am trying everything possible to create a basic login page with Django., 
> i have tried so many videos and online tutorial, but still can't make 
> anything meaningful out of it. Can anyone please take me through a 
> systematic process please, since i am new here and want to take Django to 
> be my friend

-- 
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/61f6c9f9-2973-4572-ae51-8689d6521292n%40googlegroups.com.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Radhika Soni
Hello,
You can take help from udemy or coursera courses.

On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga 
wrote:

> Please share what you have been able to do, where you are blocked and from
> there we can guide you, because, we don't even know which videos you have
> been viewing!
>
> On Wednesday, January 18, 2023 at 11:56:45 PM UTC+1 macca...@gmail.com
> wrote:
>
>> I am trying everything possible to create a basic login page with
>> Django., i have tried so many videos and online tutorial, but still can't
>> make anything meaningful out of it. Can anyone please take me through a
>> systematic process please, since i am new here and want to take Django to
>> be my friend
>
> --
> 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/61f6c9f9-2973-4572-ae51-8689d6521292n%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/CAGhU6zNsAmutLvJRFdHMPOU8ZKS4Oywha%2B%3DoOWkKAUw4tsh61A%40mail.gmail.com.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread ritik sahoo
If u will follow geekyshows channel on YouTube your basic must be cleared


On Thu, 19 Jan, 2023, 6:51 pm Radhika Soni,  wrote:

> Hello,
> You can take help from udemy or coursera courses.
>
> On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga 
> wrote:
>
>> Please share what you have been able to do, where you are blocked and
>> from there we can guide you, because, we don't even know which videos you
>> have been viewing!
>>
>> On Wednesday, January 18, 2023 at 11:56:45 PM UTC+1 macca...@gmail.com
>> wrote:
>>
>>> I am trying everything possible to create a basic login page with
>>> Django., i have tried so many videos and online tutorial, but still can't
>>> make anything meaningful out of it. Can anyone please take me through a
>>> systematic process please, since i am new here and want to take Django to
>>> be my friend
>>
>> --
>> 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/61f6c9f9-2973-4572-ae51-8689d6521292n%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/CAGhU6zNsAmutLvJRFdHMPOU8ZKS4Oywha%2B%3DoOWkKAUw4tsh61A%40mail.gmail.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/CAJwehCs3jF8TF5q%2BqY7XvWafPCprs8EtVcUA2oMLvcSUsumsJw%40mail.gmail.com.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Namanya Daniel
Explain where you’re failing exactly, is it views, forms, templates or
models

On Thu, 19 Jan 2023 at 01:56, Michael R. KOOMSON 
wrote:

> I am trying everything possible to create a basic login page with Django.,
> i have tried so many videos and online tutorial, but still can't make
> anything meaningful out of it. Can anyone please take me through a
> systematic process please, since i am new here and want to take Django to
> be my friend
>
> --
> 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/0c495fc8-ce4e-4d6f-a2d7-7b2d8478b06an%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/CAP4VW2V%3DuVe2p%3DCQJBWup%3DDcn4FGs5dLFp-zGEqXLQK6xwD6VQ%40mail.gmail.com.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Sebastian Jung
I think this is a good start or?

https://github.com/earthcomfy/Django-registration-and-login-system

Namanya Daniel  schrieb am Do., 19. Jan. 2023,
15:00:

> Explain where you’re failing exactly, is it views, forms, templates or
> models
>
> On Thu, 19 Jan 2023 at 01:56, Michael R. KOOMSON 
> wrote:
>
>> I am trying everything possible to create a basic login page with
>> Django., i have tried so many videos and online tutorial, but still can't
>> make anything meaningful out of it. Can anyone please take me through a
>> systematic process please, since i am new here and want to take Django to
>> be my friend
>>
>> --
>> 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/0c495fc8-ce4e-4d6f-a2d7-7b2d8478b06an%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/CAP4VW2V%3DuVe2p%3DCQJBWup%3DDcn4FGs5dLFp-zGEqXLQK6xwD6VQ%40mail.gmail.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/CAKGT9mxg9yy3OXojtu67UUSADUbrpYe%2B%2BQT2aFBW6h2tKMGN7w%40mail.gmail.com.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread ritik sahoo
Ofcourse

On Thu, 19 Jan, 2023, 7:40 pm Sebastian Jung, 
wrote:

> I think this is a good start or?
>
> https://github.com/earthcomfy/Django-registration-and-login-system
>
> Namanya Daniel  schrieb am Do., 19. Jan. 2023,
> 15:00:
>
>> Explain where you’re failing exactly, is it views, forms, templates or
>> models
>>
>> On Thu, 19 Jan 2023 at 01:56, Michael R. KOOMSON 
>> wrote:
>>
>>> I am trying everything possible to create a basic login page with
>>> Django., i have tried so many videos and online tutorial, but still can't
>>> make anything meaningful out of it. Can anyone please take me through a
>>> systematic process please, since i am new here and want to take Django to
>>> be my friend
>>>
>>> --
>>> 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/0c495fc8-ce4e-4d6f-a2d7-7b2d8478b06an%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/CAP4VW2V%3DuVe2p%3DCQJBWup%3DDcn4FGs5dLFp-zGEqXLQK6xwD6VQ%40mail.gmail.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/CAKGT9mxg9yy3OXojtu67UUSADUbrpYe%2B%2BQT2aFBW6h2tKMGN7w%40mail.gmail.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/CAJwehCs8e4sZ9wGOoqq_8pA_OS6D%2BQgww2%2B9VvLgtwkV%3DoBWag%40mail.gmail.com.


Re: Please i need help in creating a Login page with Django

2023-01-19 Thread M Adnan
Join this group to discuss your issues with developers link below ,


https://chat.whatsapp.com/ICXdXOrbgoNFQTbKxalZD1

On Thu, 19 Jan 2023, 6:21 pm Radhika Soni,  wrote:

> Hello,
> You can take help from udemy or coursera courses.
>
> On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga 
> wrote:
>
>> Please share what you have been able to do, where you are blocked and
>> from there we can guide you, because, we don't even know which videos you
>> have been viewing!
>>
>> On Wednesday, January 18, 2023 at 11:56:45 PM UTC+1 macca...@gmail.com
>> wrote:
>>
>>> I am trying everything possible to create a basic login page with
>>> Django., i have tried so many videos and online tutorial, but still can't
>>> make anything meaningful out of it. Can anyone please take me through a
>>> systematic process please, since i am new here and want to take Django to
>>> be my friend
>>
>> --
>> 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/61f6c9f9-2973-4572-ae51-8689d6521292n%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/CAGhU6zNsAmutLvJRFdHMPOU8ZKS4Oywha%2B%3DoOWkKAUw4tsh61A%40mail.gmail.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/CABNyTSpXT57HOuVSWcmLk1NxSyq9F8hsZPYiWY0CtSRzk_2KpQ%40mail.gmail.com.


Re: Please i need help in creating a Login page with Django

2023-01-20 Thread Aditi Dwivedi
You have to first create a superuser in your django project.
It is same as creating a root user in Linux or admin user in windows.
Super user can be created as..
1. Run command in django terminal
 Python manage.py createsuperuser


2. It will ask for user name, emai and password.

3. Run command
Python manage.py runserver.


Hope this helps.

On Thu, 19 Jan 2023, 6:51 pm Radhika Soni,  wrote:

> Hello,
> You can take help from udemy or coursera courses.
>
> On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga 
> wrote:
>
>> Please share what you have been able to do, where you are blocked and
>> from there we can guide you, because, we don't even know which videos you
>> have been viewing!
>>
>> On Wednesday, January 18, 2023 at 11:56:45 PM UTC+1 macca...@gmail.com
>> wrote:
>>
>>> I am trying everything possible to create a basic login page with
>>> Django., i have tried so many videos and online tutorial, but still can't
>>> make anything meaningful out of it. Can anyone please take me through a
>>> systematic process please, since i am new here and want to take Django to
>>> be my friend
>>
>> --
>> 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/61f6c9f9-2973-4572-ae51-8689d6521292n%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/CAGhU6zNsAmutLvJRFdHMPOU8ZKS4Oywha%2B%3DoOWkKAUw4tsh61A%40mail.gmail.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/CAHBdd%2BAnpzf1N7VxS7Ue4OdEtzBzUTDf%3DizDmRkwA7xfvpdcZA%40mail.gmail.com.


Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-23 Thread Sam Lai
On 23 January 2012 15:22, JJ Zolper  wrote:
> Hello everyone,
>
> I was able to install Django to my machine and before I was using the
> command prompt. Django's path is in my Windows 7 64 bit Enterprise
> Environment variable. Python worked fine as well too. I also installed
> IPython because I heard it was useful but I haven't tried that yet.
> Everything has been good so far. I would like some input on what I am
> currently trying now.
>
> I have gone ahead and installed IronPython. I already had Visual Studio 2010
> on my computer so I was using that. I also installed Python Tools for Visual
> Studio. As I mentioned before I already have Python 2.7.2 installed.
>
> I was able to see the image/window in step 3
> here: http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home
>
> It shows the options pane for Python Tools for Visual Studio. I was able to
> see that PT4VS (Python Tools for Visual Studio) was correctly including the
> location of the Python install at C:/Python27/python.py. Everything looked
> good there as it seems that Python was incorporated into PT4VS. I was trying
> to continue through the tutorial but I was having problems. I tried this
> command: python manage.py runserver but I only recieved a traceback error.

You've left out the most important bit - the actual traceback error. What is it?

If it can't find something, then it could be a PYTHONPATH issue.
Google tells me PT4VS may not support the usual way modules are
discovered (http://pytools.codeplex.com/discussions/254602), although
that should affect IronPython only, and not CPython (possibly
intellisense as well).

Inside PT4VS, in the interactive window, type in the following and
paste the result -

import sys
print sys.path

> Additionally in PT4VS there is a field for a startup script. I wrote one and
> here it is:
>
> import os
> import IPython
> import django
> os.chdir('c:\\MTDevelopment\\Django\\newartists')
>
> This so that I could change my directory to where my startproject was set
> with all the django web framework files. Also to import IPython and django
> as you see here. That seemed to work as I anticipated.

This smells like a hack. Your default working directory should already
be the directory your app is in. If it isn't, you need to check your
project settings (you are using a Python VS project right?).

> What I am asking you is why am I not able to get the full power of Django?
> In my command prompt I wasn't inside the python interpreter and ran the
> Django commands and everything worked fine. However, I was under the
> impression that with a Python interpreter in VS that I could have everything
> come in in a start up script and just go on my way coding with Django having
> set the directory to the location of my startproject?
>
> When I type: django and IPython into my PT4VS now I see:
>
 IPython
>  'C:\Python27\lib\site-packages\ipython-0.11-py2.7.egg\IPython\__init__.pyc'>
 django
>  'C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\__init__.pyc'>
>
> so it is imported it correctly I think but I'm not able to use it. I've been
> working hard on teaching myself how to get all this set up and any help from
> you all would make my time working on this a lot easier!
>
> Thanks so much,
>
> JJ Zolper
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/P5AJ334Yr8YJ.
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-23 Thread JJ Zolper
Here is the error:

>>> python manage.py runserver
  File "", line 1
python manage.py runserver
^
SyntaxError: invalid syntax
>>> 


You've left out the most important bit - the actual traceback error. What 
is it?

If it can't find something, then it could be a PYTHONPATH issue.
Google tells me PT4VS may not support the usual way modules are
discovered (http://pytools.codeplex.com/discussions/254602), although
that should affect IronPython only, and not CPython (possibly
intellisense as well).

Inside PT4VS, in the interactive window, type in the following and
paste the result -

import sys
print sys.path



I'm not too familiar with these things yet. Are you saying CPython might be 
better if I want to work in Visual Studio with the setup I am trying?



Here is the response to


import sys
print sys.path 

it is:

>>> import sys
... 
>>> print sys.path
['c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE', 
'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg', 
'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg', 
'C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg', 
'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 
'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 
'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 
'C:\\Python27\\lib\\site-packages', 'c:\\Program Files (x86)\\Microsoft 
Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for 
Visual Studio\\1.1', 
'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg\\IPython\\extensions']


This smells like a hack. Your default working directory should already
be the directory your app is in. If it isn't, you need to check your
project settings (you are using a Python VS project right?). 


Well I have no idea how I am hacking here...
But I didin't start a new project just through visual studio. I had already 
within the cmd prompt run the "startproject" command naming "mysite" to be 
"newartists." That was done at an earlier time so I just wanted to move to 
that directory within the python interpreter

Well I didn't use a Python VS project because the files were already 
created but if I start a new Python file I'll most likely just pick my 
options within Visual Studio. That would make the most sense.

Thanks,

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/94xoFRPnfRAJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-23 Thread Andre Terra
the >>> indicates you are IN a python shell, which is different from your
OS prompt. Try exiting the shell first (with exit()) and then run "python
manage.py runserver" from a command prompt or terminal window.


Cheers,
AT

On Mon, Jan 23, 2012 at 4:11 PM, JJ Zolper  wrote:

>
> >>> python manage.py runserver
>   File "", line 1
> python manage.py runserver
> ^
> SyntaxError: invalid syntax
> >>>
>

-- 
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-23 Thread JJ Zolper
For sanity purposes I removed my "hack" or start up script that had "import 
django" and "import IPython"

Here it is:

>>> import sys
>>> sys.path
['c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE', 
'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg', 
'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg', 
'C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg', 
'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 
'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 
'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 
'C:\\Python27\\lib\\site-packages', 'c:\\Program Files (x86)\\Microsoft 
Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for 
Visual Studio\\1.1']
>>> 

It looks like in both cases Django is included but I'm still not convinced 
that everything is right because in the windows command prompt I am able to 
start my server like a charm but in Visual Studio I don't think I can 
really do anything.

Are you not able to run Django commands from the Python prompt? That 
probably sounds stupid but to be honest I think the only time I can run 
Django commands is when I'm outside the Python interpreter in just the 
command prompt of Windows.

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/64kazlpsOksJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-23 Thread JJ Zolper
Yes I knew I was in the Python shell I just never saw anything that 
described you couldn't make Django commands within the Python interpreter. 
I mean it is based on Python isn't it? That's where I thought logically you 
could make Django calls from in Python?

SO

Is your best advice to have a OS prompt open in tandem with my Visual 
Studio Python Interpreter open? That being said that would be the best 
solution given my situation I suppose. However within the interpreter 
Python Tools for VS there may be limitations. That is what I've heard at 
least. I'm just referring to the interactive intellisense I think?.. 

Thank you for the tip on starting my server Andrew I will surely exit the 
Python interpreter and use a prompt!

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/y2Pz2JDeEo0J.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-24 Thread Sam Lai
On 24 January 2012 07:58, JJ Zolper  wrote:
> Yes I knew I was in the Python shell I just never saw anything that
> described you couldn't make Django commands within the Python interpreter. I
> mean it is based on Python isn't it? That's where I thought logically you
> could make Django calls from in Python?

These 'Django commands' you're referring to, i.e. those involving
manage.py, are commands that are meant to be run from the command
prompt. You are executing a python script file, but they are not
Python commands.

> SO
>
> Is your best advice to have a OS prompt open in tandem with my Visual Studio
> Python Interpreter open? That being said that would be the best solution
> given my situation I suppose. However within the interpreter Python Tools
> for VS there may be limitations. That is what I've heard at least. I'm just
> referring to the interactive intellisense I think?..

VS doesn't work well outside of a VS project. Without one, it won't
know what your Python search path is, where all your code is located,
so you'll have minimal Intellisense (it'll know about the built-in
Python libraries, but not much else). You'll may also have issues
executing code because it doesn't know how to find all your code and
dependencies without the Python search path, and without that you'll
probably also lose the great debugging abilities of VS. All you're
really left with is a glorified syntax-checking text editor.

If you really want to do that, then the best solution is to open a
separate Command Prompt to run 'manage.py runserver' from. I mentioned
CPython before; that's just a name for the Python you download from
python.org. I used it to differentiate that from IronPython, which is
a .NET implementation of Python. I believe there are outstanding
issues with Django and IronPython, so it probably isn't worth trying
that.

You also seem to be confused with a Django project vs. a VS project. A
Django project simply defines the directory structure, and gives you a
few files to start with, including manage.py. This structure is how
Django is able to find the various files it needs.

A VS project is necessary to let VS know where all your files are,
where it should look for your Python packages etc. It is for VS to
know how to execute, debug and manage your code. Django does not know
anything about the VS project, and it shouldn't because it has nothing
to do with Django once Django is running.

Once you've created a VS Python Application project (ideally in the
same directory as your Django project), here's how to make it run the
built-in Django test server -

1. Right-click on your VS project in the Solution Explorer, and click
Properties.
2. Click on the Debug tab.
3. In 'Script Arguments', type 'runserver'.
4. Save the Project properties.
5. Add the files in your Django project to your project by
right-clicking on your VS project, Add, Existing item.
6. Right-click on manage.py and select 'Set as Startup File'.

To test, just go Debug -> Start Debugging or press F5.

I've had a quick play around; looks like the 'Execute project in
Python Interactive' option doesn't pass script arguments along, so
that won't work for running the test server, but then again, there's
nothing to interact with in the test server anyway. You can use that
option to test out models and the Django API though.

> Thank you for the tip on starting my server Andrew I will surely exit the
> Python interpreter and use a prompt!
>
> JJ Zolper
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/y2Pz2JDeEo0J.
>
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-24 Thread JJ Zolper
Sam Lai,

Thank you so much for taking the time to explain all that to me.

Being new to all this I feel that I might need to just start out with a 
command prompt working with Django and something else... another command 
prompt or VS to create my python files.

However, having read what you posted, would you be able to give me some 
other options I can use for working with Python?

I know that's a general question and I'm sorry it's asking a lot but to me 
I see it like this. There is CPython and IronPython. I was under the 
impression they are both are interpreters. Atleast that's what I read right 
now. So I suppose I could move over to CPython and use that as my 
development realm for my Python?

I'm also tempted to trying to instal UNIX/LINUX because I keep seeing lots 
of videos on youtube where people seem to flawlessly be commanding their 
Python.

A lot to respond too I know, any help would be fantastic!

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/K8mvTguVjc4J.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-24 Thread JJ Zolper
Sam Lai,

I am interested in PostgreSQL. I've heard it is good to use along with 
Django. More specifically to work with GIS. I'm very interested in the 
Geographical uses of Django. In particular GeoDjango. As I continued to 
learn more about this web framework I hope to be able to work with 
databases such as PostgreSQL and work with Geographical information/code. 
Maybe this helps give a more representation of what I want to do with 
Django. I see on GeoDjango's documentation that the Linux mascot Tux is 
there. I keep thinking I am wasting my own time with Windows here and that 
my real destiny here is the real programmers language. To put it in short 
terms. Do you think that is true?

I want to unleash the power here of the interactiveness as well as be able 
to have my Python/Django to work alongside with GeoDjango and PostgreSQL.

Do you know anything about this?

Is CPython along the horizon for me because IronPython will not interact 
well with Django like you said? Should I consider trying to install 
Python/Django/CPython, etc on Linux to start my development?

Thanks,

JJ

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/PQOX8P9m77YJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-24 Thread kenneth gonsalves
On Tue, 2012-01-24 at 19:19 -0800, JJ Zolper wrote:
> I am interested in PostgreSQL. I've heard it is good to use along with
> Django. More specifically to work with GIS. I'm very interested in the
> Geographical uses of Django. In particular GeoDjango. As I continued
> to learn more about this web framework I hope to be able to work with
> databases such as PostgreSQL and work with Geographical
> information/code. Maybe this helps give a more representation of what
> I want to do with Django. I see on GeoDjango's documentation that the
> Linux mascot Tux is there. I keep thinking I am wasting my own time
> with Windows here and that my real destiny here is the real
> programmers language. To put it in short terms. Do you think that is
> true?

yes - especially if you are using OSM, postgresql is essential.
-- 
regards
Kenneth Gonsalves

-- 
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread JJ Zolper
Okay I am glad to hear that something I knew was on the right track! Thanks 
Kenneth! However what is OSM? Open Street Maps? maybe you could tell me a 
little bit more about it as I have not heard of it?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/joEBjw69ilAJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread JJ Zolper
In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS
and VI configurations, SciTE), one can edit a file, save it (some will
save for you if needed), then hit some key combo which will spawn a
Python interpreter passing it the file for execution. You may even be
prompted to supply command line arguments (PythonWin, I know does this). 

This is very interesting thanks for sharing! As for the information above 
that has cleared it up quite a bit for me.

Sam Lai has helped a lot I think I am going to try to see if CPython works 
in VS because he thinks I will have less compatibility with IronPython and 
Django which would not be good. For the time being however I think I might 
just use VS since I am still new to really what I could be lacking with 
that as far as compatibility.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread william ratcliff
Just curious--is there any particular reason that you were using Visual
Studio?

On Wed, Jan 25, 2012 at 12:50 PM, JJ Zolper  wrote:

> In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS
> and VI configurations, SciTE), one can edit a file, save it (some will
> save for you if needed), then hit some key combo which will spawn a
> Python interpreter passing it the file for execution. You may even be
> prompted to supply command line arguments (PythonWin, I know does this).
>
> This is very interesting thanks for sharing! As for the information above
> that has cleared it up quite a bit for me.
>
> Sam Lai has helped a lot I think I am going to try to see if CPython works
> in VS because he thinks I will have less compatibility with IronPython and
> Django which would not be good. For the time being however I think I might
> just use VS since I am still new to really what I could be lacking with
> that as far as compatibility.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ.
>
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread JJ Zolper
Not really I don't have any preference. Any input is welcome!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/VoMln37CSU8J.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread Sam Lai
On 26 January 2012 04:50, JJ Zolper  wrote:
> In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS
> and VI configurations, SciTE), one can edit a file, save it (some will
> save for you if needed), then hit some key combo which will spawn a
> Python interpreter passing it the file for execution. You may even be
> prompted to supply command line arguments (PythonWin, I know does this).
>
> This is very interesting thanks for sharing! As for the information above
> that has cleared it up quite a bit for me.
>
> Sam Lai has helped a lot I think I am going to try to see if CPython works
> in VS because he thinks I will have less compatibility with IronPython and
> Django which would not be good. For the time being however I think I might
> just use VS since I am still new to really what I could be lacking with that
> as far as compatibility.

Python Tools for Visual Studio should automatically detect CPython if
you have that installed. If you haven't, I suggest you download an
install a CPython distribution called ActivePython Community Edition
(http://www.activestate.com/activepython/downloads). It will set up
Python in your Windows environment properly, which the official one
doesn't seem to do right (judging by the posts here about Windows).

The bonus with VS is the great debugger, which works with CPython as
well. Many of the IDEs mentioned are just great text editors, and
don't include a debug environment (i.e. the ability to set
breakpoints, explore stack, step through code visually etc.). Some do
include such an environment, including PyCharm and PyDev.

PostgreSQL also works fine on Windows. No idea about all the GIS stuff
though. If you're comfortable with using Linux, then go for it, but
most of the basic stuff you can do on Windows (until you need other
bits of software to make things work, like Redis). Unless you have a
preference for Windows though, I wouldn't use it as a Django app web
server in production; there's far less support on the net to help you
out when things go wrong.

I use ActiveState Komodo Edit on Windows to modify files on my Linux
VM which runs the web server for my Django apps. It means I don't get
a debug environment though; working on finding something to make that
work.

>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ.
>
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread JJ Zolper
>  Unless you have a
>  preference for Windows though, I wouldn't use it as a Django app web
>  server in production; there's far less support on the net to help you
>  out when things go wrong. 

Let me see if this what you mean... so when I want to run "python manage.py 
runserver," a Django command I should steer clear of Windows? 

> I use ActiveState Komodo Edit on Windows to modify files on my Linux
> VM which runs the web server for my Django apps. It means I don't get
> a debug environment though; working on finding something to make that
> work. 

So I should install ActiveState Komodo Edit to Windows. Which in turn well 
help me to work with my Django server through a Virtual Machine?

If I have this right I should install my CPython distro to VS and build my 
Python on Windows in VS. Then on the side I should have a VM running with 
my Django server (aka my Django project)?

JJ

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/1Efy7_gaDdgJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread Sam Lai
On 26 January 2012 12:05, JJ Zolper  wrote:
>>  Unless you have a
>>  preference for Windows though, I wouldn't use it as a Django app web
>>  server in production; there's far less support on the net to help you
>>  out when things go wrong.
>
> Let me see if this what you mean... so when I want to run "python manage.py
> runserver," a Django command I should steer clear of Windows?

The keywords were 'in production'. The development server (i.e. python
manage.py runserver) works fine under Windows. But when you want to
make the website accessible to your audience (the internet, company
etc.), you should host that on Linux.

>> I use ActiveState Komodo Edit on Windows to modify files on my Linux
>> VM which runs the web server for my Django apps. It means I don't get
>> a debug environment though; working on finding something to make that
>> work.
>
> So I should install ActiveState Komodo Edit to Windows. Which in turn well
> help me to work with my Django server through a Virtual Machine?

That's one way. It's a bit more complex than simply doing everything
inside a Linux VM. Komodo Edit also works in Linux as well.

> If I have this right I should install my CPython distro to VS and build my
> Python on Windows in VS. Then on the side I should have a VM running with my
> Django server (aka my Django project)?

See above; the runserver command works fine under Windows.

> JJ
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/1Efy7_gaDdgJ.
>
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread JJ Zolper
> The keywords were 'in production'. The development server (i.e. python
> manage.py runserver) works fine under Windows. But when you want to
> make the website accessible to your audience (the internet, company
> etc.), you should host that on Linux. 

I still don't quite understand. Can you explain more? I would think this 
means that my Django files should be on a Linux portion of my web server? I 
am with Bluehost.com

I have installed ActiveState and will give it a try. I have my VS up and 
running with Python Tools for VS so that should be okay.

Hey Sam you've been a great help. Would you by chance mind giving me your 
e-mail address? That way in the future I could work with you? I won't 
bother you too much don't worry! lol. Just since I am trying your advice it 
could be a great help to me.

What Virtual Machine did you pick? What Linux version are you running?

If you prefer e-mailing/want to give me your address my next inquery would 
just go to your e-mail.

Thanks so much!

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread Sam Lai
On 26 January 2012 13:14, JJ Zolper  wrote:
>> The keywords were 'in production'. The development server (i.e. python
>> manage.py runserver) works fine under Windows. But when you want to
>> make the website accessible to your audience (the internet, company
>> etc.), you should host that on Linux.
>
> I still don't quite understand. Can you explain more? I would think this
> means that my Django files should be on a Linux portion of my web server? I
> am with Bluehost.com

When you are developing your Django app, the development server that
comes with Django (python manage.py runserver) works fine on Windows.
When you are ready to move things into production for everyone else
access, you should not use the development server; instead you should
use a proper web server, e.g. nginx, cherokee or Apache. Those web
servers tend to be better documented on Linux.

If it makes things easier, just do everything on Linux.

> I have installed ActiveState and will give it a try. I have my VS up and
> running with Python Tools for VS so that should be okay.
>
> Hey Sam you've been a great help. Would you by chance mind giving me your
> e-mail address? That way in the future I could work with you? I won't bother
> you too much don't worry! lol. Just since I am trying your advice it could
> be a great help to me.
>
> What Virtual Machine did you pick? What Linux version are you running?

I'm just using VirtualBox, running a whatever Linux distro I happen to
like at the time, e.g. CentOS, Ubuntu etc.

> If you prefer e-mailing/want to give me your address my next inquery would
> just go to your e-mail.
>
> Thanks so much!
>
> JJ Zolper
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ.
>
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread JJ Zolper


> When you are developing your Django app, the development server that
>  comes with Django (python manage.py runserver) works fine on Windows.
>  When you are ready to move things into production for everyone else
>  access, you should not use the development server; instead you should
>  use a proper web server, e.g. nginx, cherokee or Apache. Those web
>  servers tend to be better documented on Linux.

> If it makes things easier, just do everything on Linux.

So by everything you mean my Django project would be made within the VM and 
UNIX/Linux?

> I'm just using VirtualBox, running a whatever Linux distro I happen to
>  like at the time, e.g. CentOS, Ubuntu etc. 

Okay I've used VirtualBox before. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/suBtjoZBkBAJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-25 Thread kenneth gonsalves
On Wed, 2012-01-25 at 09:41 -0800, JJ Zolper wrote:
> Okay I am glad to hear that something I knew was on the right track!
> Thanks Kenneth! However what is OSM? Open Street Maps? maybe you could
> tell me a little bit more about it as I have not heard of it

http://www.openstreetmap.org/
-- 
regards
Kenneth Gonsalves

-- 
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread Jonathan Paugh

On 01/23/2012 03:58 PM, JJ Zolper wrote:
Yes I knew I was in the Python shell I just never saw anything that 
described you couldn't make Django commands within the Python 
interpreter. I mean it is based on Python isn't it? That's where I 
thought logically you could make Django calls from in Python?


SO

Shells run commands. Python is not a shell.  If you want to run the 
Python /command/ from inside of the Python interpreter prompt, the 
closest you can get is:

>>> import os
>>> os.system('python ./manage.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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread Steven Elliott Jr

On Jan 25, 2012, at 9:14 PM, JJ Zolper wrote:

> > The keywords were 'in production'. The development server (i.e. python
> > manage.py runserver) works fine under Windows. But when you want to
> > make the website accessible to your audience (the internet, company
> > etc.), you should host that on Linux. 
> 
> I still don't quite understand. Can you explain more? I would think this 
> means that my Django files should be on a Linux portion of my web server? I 
> am with Bluehost.com

It means when you actually go to deploy your app on an actual web server in 
production you're going to be deploying on Linux. I've never seen a Python host 
on Windows, but then again I've never looked because, to be honest most Django 
devs use some Unix variant for development.

> I have installed ActiveState and will give it a try. I have my VS up and 
> running with Python Tools for VS so that should be okay.
> 
> Hey Sam you've been a great help. Would you by chance mind giving me your 
> e-mail address? That way in the future I could work with you? I won't bother 
> you too much don't worry! lol. Just since I am trying your advice it could be 
> a great help to me.
> 
> What Virtual Machine did you pick? What Linux version are you running?

Most people use Ubuntu running in VirtualBox
> 
> If you prefer e-mailing/want to give me your address my next inquery would 
> just go to your e-mail.
> 
> Thanks so much!
> 
> JJ Zolper
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ.
> 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
Since I will be deploying my Python code on a server that is based on Linux 
wouldn't it be smart that I develop my Python code on something similar to 
my VM for Django?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/SobtqjAubcoJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
> ActivePython for Windows includes the win32 extension libraries (if
>  one wants to go to native Windows code -- though the now standard ctypes
>  library permits similar capability if one knows the API), and PythonWin
>  IDE (as I recall, this started life as an included demo of the win32
>  extension libraries ). 

I don't necessarily want all my code to be native WIndows code. I'm 
starting to get the impression that since Django is developed on Unbuntu I 
should setup an interpreter on my VM with Unbuntu?

That's really all I am trying to understand. From A to B. A being where I 
am able to develop once I finally am able to make that decision and B how 
smart I picked A so that the move from my local computer to my server is 
smooth and simple.

I'm just unfamiliar with Python and how any of it is done besides just once 
you have an interpreter and type in simple functions. I've done everything 
from the interpreter I haven't even made a program yet. I just wanted to be 
in the right place when I started from the beginning just where I can send 
my work into production directly. If I loose compatibility with libraries 
and important features in Windows I will absolutely change my current 
course and move to where everyone is in the UNIX/LINUX realm.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/nSNskYv_OHwJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
Thanks a lot I was thinking I would learn the Google Maps API. Have you 
worked with OSM?

Do you have any input if you have used OSM and if you have used Google Maps 
what your comments are?

Thanks,

JJ Zoler

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/QJxwbShlYI4J.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
Thanks a lot I was thinking I would learn the Google Maps API. Have you 
worked with OSM?

Do you have any input if you have used OSM and if you have used Google Maps 
what your comments are?

Thanks,

JJ Zolper

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TLCnDS2Io6wJ.
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-28 Thread Jonathan Paugh
Developing on a Linux-based OS will give you indispensable understanding
of your production environment. On the other hand, it will probably be
very unfamiliar if you haven't worked on Linux before, and easy tasks
will become very difficult again, for a while. You should ultimately
develop your application on the platform that makes you the most
productive---the portability of Python and Django gives you that
luxury---you could even target the Java Virtual Machine. (And you won't
know that without trying them all.)

Definitely try out running a development websever './manage.py runserver
is fine) on Linux, to get a feel for what your production environment
might be like. You might decide you like working on Linux, and it make
you more productive---or not. But---at least for Django/Python---that's
largely a matter of taste.

On 01/27/2012 03:18 PM, JJ Zolper wrote:
> Since I will be deploying my Python code on a server that is based on Linux 
> wouldn't it be smart that I develop my Python code on something similar to 
> my VM for 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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-28 Thread kenneth gonsalves
On Fri, 2012-01-27 at 12:18 -0800, JJ Zolper wrote:
> Since I will be deploying my Python code on a server that is based on
> Linux wouldn't it be smart that I develop my Python code on something
> similar to my VM for Django?

yes
-- 
regards
Kenneth Gonsalves

-- 
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-28 Thread kenneth gonsalves
On Fri, 2012-01-27 at 12:24 -0800, JJ Zolper wrote:
> That's really all I am trying to understand. From A to B. A being
> where I am able to develop once I finally am able to make that
> decision and B how smart I picked A so that the move from my local
> computer to my server is smooth and simple.

upgrade to linux and stop worrying
-- 
regards
Kenneth Gonsalves

-- 
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: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-28 Thread kenneth gonsalves
On Fri, 2012-01-27 at 12:25 -0800, JJ Zolper wrote:
> Thanks a lot I was thinking I would learn the Google Maps API. Have
> you worked with OSM? 
> 
> Do you have any input if you have used OSM and if you have used Google
> Maps what your comments are? 

google maps are proprietary. OSM in open source - end of discussion.
-- 
regards
Kenneth Gonsalves

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



  1   2   >