Re: Tutorial Problems...

2019-08-11 Thread Mike Dewhirst

On 11/08/2019 3:25 am, aman kumar wrote:

 hello...
While using field type null ...
what is difference between "Empty string" and Null=True i.e null 
..value for "no data"  in string based field...?


Empty string is ""
Django likes to convert str=None (ie no value) into an empty string 
depending on the RDBMS.


https://docs.djangoproject.com/en/2.1/ref/databases/#null-and-empty-strings
https://docs.djangoproject.com/en/2.1/ref/forms/fields/#django.forms.Field.required

From the latter link ...

"If a |Field| has |required=False| and you pass |clean()| an empty 
value, then |clean()| will return a /normalized/ empty value rather than 
raising |ValidationError|. For |CharField|, this will be an empty 
string. For other |Field| classes, it might be |None|. (This varies from 
field to field.)"


It looks like you might have used an existing thread to ask your 
question. It is always best to start a new thread when you have a new 
question.


Cheers

Mike



--
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/83c3f78b-5a57-4638-a3bb-dae1c2fd1969%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/705d19a2-cdcf-b759-e619-0c1a3ae18ef2%40dewhirst.com.au.


Re: Tutorial Problems...

2019-08-10 Thread aman kumar
 hello...
While using field type null ...
what is difference between "Empty string" and Null=True i.e null 
..value for "no data"  in string based field...?

-- 
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/83c3f78b-5a57-4638-a3bb-dae1c2fd1969%40googlegroups.com.


Re: Tutorial Problems...

2019-08-08 Thread Mike Dewhirst

On 9/08/2019 2:43 am, Emil Lilja wrote:
1. Yeah i know but I've copied the code straight of the tutorial so 
getting a SyntaxError seems odd.


Well you know what Sherlock Holmes would say. Eliminate the impossible 
and what is left must be true.


You can only detect a syntax error by examing your code on line 21. You 
need to understand Python in order to make sense of it. Perhaps you 
could post that line and the few lines above and below and someone here 
might be able to help.





2. Don't think it has anything to do with the migration. I just don't 
see the output of runserver until i terminate it with ctrl-c. Noticed 
recently that it only does this on Git Bash and not windows Cmd


Whether or not doesn't matter when you have a syntax error. Fix that 
first and then migrate




On Thursday, August 8, 2019 at 1:10:27 AM UTC+2, Mike Dewhirst wrote:

Two things ...

Look at the error near the bottom of the traceback and notice it
says there is a syntax faux pas on line 21 of one of your files.
If you find and fix that python will advance to your next error -
if any.

And

runserver is asking you to Ctrl-c and do python manage.py
 migrate --settings=

This will ensure your database matches all the models in your
project including Django's own models.

/Connected by Motorola/


Emil Lilja > wrote:

Hey,

Thanks for your reply!

So yeah i did the tutorial from scratch again and noticed like you
were aiming at that the server was actually running. Even though
the tutorial clearly states that you should get the following
output when running /runserver, /I only seem to get this after i
terminate with Ctrl+C/:/

Performing system checks...

System check identified no issues (0 silenced).

You have unapplied migrations; your app may not work properly until they 
are applied.
Run 'python manage.py migrate' to apply them.

August 03, 2019 - 15:50:53
Django version 2.2, using settings 'mysite.settings'
Starting development server athttp://127.0.0.1:8000/
Quit the server with CONTROL-C.

Anyways i realised why the server probably isn't running, I've
created the polls app and followed all the steps (copied code
exactly) and i get a SyntaxError?
What's causing this?

$ python manage.py runserver
Watching for file changes with StatReloader

### I Press Ctrl+C and get the following output:

   


Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Anaconda3\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Anaconda3\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Anaconda3\lib\site-packages\django\utils\autoreload.py",
line 54, in wrapper
fn(*args, **kwargs)
File

"C:\Anaconda3\lib\site-packages\django\core\management\commands\runserver.py",
line 117,
in inner_run
self.check(display_num_errors=True)
File
"C:\Anaconda3\lib\site-packages\django\core\management\base.py",
line 390, in check
include_deployment_checks=include_deployment_checks,
File
"C:\Anaconda3\lib\site-packages\django\core\management\base.py",
line 377, in _run_check
s
return checks.run_checks(**kwargs)
File
"C:\Anaconda3\lib\site-packages\django\core\checks\registry.py",
line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Anaconda3\lib\site-packages\django\core\checks\urls.py",
line 13, in check_url_confi
g
return check_resolver(resolver)
File "C:\Anaconda3\lib\site-packages\django\core\checks\urls.py",
line 23, in check_resolver
return check_method()
File "C:\Anaconda3\lib\site-packages\django\urls\resolvers.py",
line 398, in check
for pattern in self.url_patterns:
File "C:\Anaconda3\lib\site-packages\django\utils\functional.py",
line 80, in __get__
res = instance.__dict__[self.name ] =
self.func(instance)
File "C:\Anaconda3\lib\site-packages\django\urls\resolvers.py",
line 579, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "C:\Anaconda3\lib\site-packages\django\utils\functional.py",
line 80, in __get__
res = instance.__dict__[self.name ] =
self.func(instance)
File "C:\Anaconda3\lib\site-packages\django\urls\resolvers.py",
line 572, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Anaconda3\lib\importlib\__init__.py", line 127, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 724, in exec_module
File 

Re: Tutorial Problems...

2019-08-08 Thread Emil Lilja
1. Yeah i know but I've copied the code straight of the tutorial so getting 
a SyntaxError seems odd.

2. Don't think it has anything to do with the migration. I just don't see 
the output of runserver until i terminate it with ctrl-c. Noticed recently 
that it only does this on Git Bash and not windows Cmd

On Thursday, August 8, 2019 at 1:10:27 AM UTC+2, Mike Dewhirst wrote:
>
> Two things ...
>
> Look at the error near the bottom of the traceback and notice it says 
> there is a syntax faux pas on line 21 of one of your files. If you find and 
> fix that python will advance to your next error - if any.
>
> And
>
> runserver is asking you to Ctrl-c and do python manage.py migrate 
> --settings=
>
> This will ensure your database matches all the models in your project 
> including Django's own models.
>
> *Connected by Motorola*
>
>
> Emil Lilja > wrote:
>
> Hey,
>
> Thanks for your reply!
>
> So yeah i did the tutorial from scratch again and noticed like you were 
> aiming at that the server was actually running. Even though the tutorial 
> clearly states that you should get the following output when running 
> *runserver, 
> *I only seem to get this after i terminate with Ctrl+C*:*
>
> Performing system checks...
>
> System check identified no issues (0 silenced).
>
> You have unapplied migrations; your app may not work properly until they are 
> applied.
> Run 'python manage.py migrate' to apply them.
>
> August 03, 2019 - 15:50:53
> Django version 2.2, using settings 'mysite.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
>
> Anyways i realised why the server probably isn't running, I've created the 
> polls app and followed all the steps (copied code exactly) and i get a 
> SyntaxError?
> What's causing this?
>
> $ python manage.py runserver  
>  Watching for file changes with StatReloader  
>
>
> ### I Press Ctrl+C and get the following output:
>
>   
> Exception in thread django-main-thread:   
>  Traceback (most recent call last):   
> File "C:\Anaconda3\lib\threading.py", 
> line 917, in _bootstrap_inner  self.run() 
>   
> File "C:\Anaconda3\lib\threading.py", line 865, in run
>self._target(*self._args, **self._kwargs)  
>   File 
> "C:\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 54, in 
> wrapperfn(*args, **kwargs)
>   File 
> "C:\Anaconda3\lib\site-packages\django\core\management\commands\runserver.py",
>  line 117, in inner_run   
>self.check(display_num_errors=True)
>   File 
> "C:\Anaconda3\lib\site-packages\django\core\management\base.py", line 390, in 
> check include_deployment_checks=include_deployment_checks,
>  File 
> "C:\Anaconda3\lib\site-packages\django\core\management\base.py", line 377, in 
> _run_checks   
>return checks.run_checks(**kwargs) 
>   File 
> "C:\Anaconda3\lib\site-packages\django\core\checks\registry.py", line 72, in 
> run_checks new_errors = check(app_configs=app_configs)
>   File 
> "C:\Anaconda3\lib\site-packages\django\core\checks\urls.py", line 13, in 
> check_url_config  
> return check_resolver(resolver)   
>File 
> "C:\Anaconda3\lib\site-packages\django\core\checks\urls.py", line 23, in 
> check_resolver return check_method()  
>   File 
> "C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 398, in check 
>   for pattern in self.url_patterns:   
>  File 
> "C:\Anaconda3\lib\site-packages\django\utils\functional.py", line 80, in 
> __get__res = instance.__dict__[self.name] = self.func(instance)   
>   File 
> "C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 579, in 
> url_patternspatterns = getattr(self.urlconf_module, "urlpatterns", 
> self.urlconf_module)  File 
> 

Re: Tutorial Problems...

2019-08-07 Thread Mike Dewhirst
Two things ...

Look at the error near the bottom of the traceback and notice it says there is 
a syntax faux pas on line 21 of one of your files. If you find and fix that 
python will advance to your next error - if any.

And

runserver is asking you to Ctrl-c and do python manage.py migrate 
--settings=

This will ensure your database matches all the models in your project including 
Django's own models.

Connected by Motorola

Emil Lilja  wrote:

>Hey,
>
>Thanks for your reply!
>
>So yeah i did the tutorial from scratch again and noticed like you were aiming 
>at that the server was actually running. Even though the tutorial clearly 
>states that you should get the following output when running runserver, I only 
>seem to get this after i terminate with Ctrl+C:
>Performing system checks... System check identified no issues (0 silenced). 
>You have unapplied migrations; your app may not work properly until they are 
>applied. Run 'python manage.py migrate' to apply them. August 03, 2019 - 
>15:50:53 Django version 2.2, using settings 'mysite.settings' Starting 
>development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
>
>Anyways i realised why the server probably isn't running, I've created the 
>polls app and followed all the steps (copied code exactly) and i get a 
>SyntaxError?
>What's causing this?
>
>body, pre { margin: 0; padding: 0; } pre { font-family: inherit; } #vt100 { 
>float: left; border: 0px solid; padding: 1px; line-height: 111%; font-size: 
>9pt; font-family: 'Lucida Console', 'Lucida Console ', 'Consolas'; color: 
>#BFBFBF; background-color: #00; } .bd { font-weight: bold } .it { 
>font-style: italic } .ul { text-decoration-line: underline } .st { 
>text-decoration-line: line-through } .lu { text-decoration-line: line-through 
>underline } .fg-color0 { color: #00 } .bg-color0 { background-color: 
>#00 } .fg-color1 { color: #BF } .bg-color1 { background-color: #BF 
>} .fg-color2 { color: #00BF00 } .bg-color2 { background-color: #00BF00 } 
>.fg-color3 { color: #BFBF00 } .bg-color3 { background-color: #BFBF00 } 
>.fg-color4 { color: #BF } .bg-color4 { background-color: #BF } 
>.fg-color5 { color: #BF00BF } .bg-color5 { background-color: #BF00BF } 
>.fg-color6 { color: #00BFBF } .bg-color6 { background-color: #00BFBF } 
>.fg-color7 { color: #BFBFBF } .bg-color7 { background-color: #BFBFBF } 
>.fg-color8 { color: #404040 } .bg-color8 { background-color: #404040 } 
>.fg-color9 { color: #FF4040 } .bg-color9 { background-color: #FF4040 } 
>.fg-color10 { color: #40FF40 } .bg-color10 { background-color: #40FF40 } 
>.fg-color11 { color: #40 } .bg-color11 { background-color: #40 } 
>.fg-color12 { color: #6060FF } .bg-color12 { background-color: #6060FF } 
>.fg-color13 { color: #FF40FF } .bg-color13 { background-color: #FF40FF } 
>.fg-color14 { color: #40 } .bg-color14 { background-color: #40 } 
>.fg-color15 { color: #FF } .bg-color15 { background-color: #FF } 
>.cursor { background-color: #BFBFBF } .font10 { font-family: 'F25 Blackletter 
>Typewriter' } 
>
>$ python manage.py runserver Watching for file changes with StatReloader 
>### I Press Ctrl+C and get the following output: 
>Exception in thread django-main-thread: Traceback (most recent call last): 
>File "C:\Anaconda3\lib\threading.py", line 917, in _bootstrap_inner self.run() 
>File "C:\Anaconda3\lib\threading.py", line 865, in run 
>self._target(*self._args, **self._kwargs) File 
>"C:\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 54, in 
>wrapper fn(*args, **kwargs) File 
>"C:\Anaconda3\lib\site-packages\django\core\management\commands\runserver.py", 
>line 117, in inner_run self.check(display_num_errors=True) File 
>"C:\Anaconda3\lib\site-packages\django\core\management\base.py", line 390, in 
>check include_deployment_checks=include_deployment_checks, File 
>"C:\Anaconda3\lib\site-packages\django\core\management\base.py", line 377, in 
>_run_check s return checks.run_checks(**kwargs) File 
>"C:\Anaconda3\lib\site-packages\django\core\checks\registry.py", line 72, in 
>run_checks new_errors = check(app_configs=app_configs) File 
>"C:\Anaconda3\lib\site-packages\django\core\checks\urls.py", line 13, in 
>check_url_confi g return check_resolver(resolver) File 
>"C:\Anaconda3\lib\site-packages\django\core\checks\urls.py", line 23, in 
>check_resolver return check_method() File 
>"C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 398, in check 
>for pattern in self.url_patterns: File 
>"C:\Anaconda3\lib\site-packages\django\utils\functional.py", line 80, in 
>__get__ res = instance.__dict__[self.name] = self.func(instance) File 
>"C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 579, in 
>url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", 
>self.urlconf_module) File 
>"C:\Anaconda3\lib\site-packages\django\utils\functional.py", line 80, in 
>__get__ res = instance.__dict__[self.name] = self.func(instance) File 

Re: Tutorial Problems...

2019-08-07 Thread Emil Lilja
Hey,

Thanks for your reply!

So yeah i did the tutorial from scratch again and noticed like you were 
aiming at that the server was actually running. Even though the tutorial 
clearly states that you should get the following output when running 
*runserver, 
*I only seem to get this after i terminate with Ctrl+C*:*

Performing system checks...

System check identified no issues (0 silenced).

You have unapplied migrations; your app may not work properly until they are 
applied.
Run 'python manage.py migrate' to apply them.

August 03, 2019 - 15:50:53
Django version 2.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Anyways i realised why the server probably isn't running, I've created the 
polls app and followed all the steps (copied code exactly) and i get a 
SyntaxError?
What's causing this?

$ python manage.py runserver
   Watching for file changes with StatReloader  


### I Press Ctrl+C and get the following output:

  
Exception in thread django-main-thread: 
   Traceback (most recent call last):   
File "C:\Anaconda3\lib\threading.py", line 917, 
in _bootstrap_inner  self.run() 
  File 
"C:\Anaconda3\lib\threading.py", line 865, in run   
self._target(*self._args, **self._kwargs)   
 File 
"C:\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 54, in 
wrapperfn(*args, **kwargs)  
File 
"C:\Anaconda3\lib\site-packages\django\core\management\commands\runserver.py", 
line 117, in inner_run  
self.check(display_num_errors=True) 
 File 
"C:\Anaconda3\lib\site-packages\django\core\management\base.py", line 390, in 
check include_deployment_checks=include_deployment_checks,  
   File 
"C:\Anaconda3\lib\site-packages\django\core\management\base.py", line 377, in 
_run_checks 
 return checks.run_checks(**kwargs) 
  File 
"C:\Anaconda3\lib\site-packages\django\core\checks\registry.py", line 72, in 
run_checks new_errors = check(app_configs=app_configs)  
File 
"C:\Anaconda3\lib\site-packages\django\core\checks\urls.py", line 13, in 
check_url_config
  return check_resolver(resolver)   
   File 
"C:\Anaconda3\lib\site-packages\django\core\checks\urls.py", line 23, in 
check_resolver return check_method()
File 
"C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 398, in check   
for pattern in self.url_patterns:   
 File 
"C:\Anaconda3\lib\site-packages\django\utils\functional.py", line 80, in 
__get__res = instance.__dict__[self.name] = self.func(instance) 
File 
"C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 579, in 
url_patternspatterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)  File 
"C:\Anaconda3\lib\site-packages\django\utils\functional.py", line 80, in 
__get__res = instance.__dict__[self.name] = self.func(instance) 
File 
"C:\Anaconda3\lib\site-packages\django\urls\resolvers.py", line 572, in 
urlconf_module  return import_module(self.urlconf_name) 
 File "C:\Anaconda3\lib\importlib\__init__.py", 
line 127, in import_modulereturn 
_bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_importFile 
"", line 983, in _find_and_load  File "", line 967, 
in _find_and_load_unlocked File "", line 677, in 
_load_unlocked  File "", line 724, in exec_module   
 File "", line 860, in get_code   
File "", line 791, in source_to_code File "", line 219, in 
_call_with_frames_removed 

Re: Tutorial Problems...

2019-08-06 Thread Mike Dewhirst

On 6/08/2019 10:32 pm, Emil Lilja wrote:

Hey all,

I realize I'm somewhat of a buffoon on the subject but I've tried 
learning Python on my free time the past couple months and want to get 
in to Django.


In my opinion that confirms you are not a buffoon but rather you are 
strategically right on the money.


So after following the tutorial and trying to launch the server with: 
/python mange.py runserver /all i get is /Watching for files with 
StatReloader/ and it never moves in from there unless i terminate with 
ctrl+c. Feels like I'm missing something fundamental, can anyone shed 
some light?


Have you tried launching a browser and visiting http://localhost:8000/





--
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/8670dcbf-c5ef-42be-8ece-9fc4f03a3ad3%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/0db8bb2c-c8bf-42bd-9bff-ded9e64134be%40dewhirst.com.au.


Tutorial Problems...

2019-08-06 Thread Emil Lilja
Hey all,

I realize I'm somewhat of a buffoon on the subject but I've tried learning 
Python on my free time the past couple months and want to get in to Django. 
So after following the tutorial and trying to launch the server with: *python 
mange.py runserver *all i get is *Watching for files with StatReloader* and 
it never moves in from there unless i terminate with ctrl+c. Feels like I'm 
missing something fundamental, can anyone shed some light?


-- 
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/8670dcbf-c5ef-42be-8ece-9fc4f03a3ad3%40googlegroups.com.


Re: Tutorial Problems

2011-03-26 Thread ruler501
I thought it was more useful to have the entire filepath there with
all files

On Mar 26, 9:34 am, delegb...@dudupay.com wrote:
> Do you have problems using pastebin???
> Sent from my BlackBerrywireless devicefrom MTN
>
> -Original Message-
> From: ruler501 <botball.de...@gmail.com>
>
> Sender:django-users@googlegroups.com
> Date: Sat, 26 Mar 2011 07:32:13To: Django 
> users<django-users@googlegroups.com>Reply-To:django-users@googlegroups.com
> Subject: Re: Tutorial Problems
>
> Sorry I tthought that would let you download. Here is another 
> downloadhttp://www.mediafire.com/?aqdav0n22vz2uxt
>
> On Mar 25, 10:13 pm,Mike Ramirez<gufym...@gmail.com> wrote:
> > On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
>
> > > I have been going through the tutorial and this is the code I
> > > currently have:
> > >http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach...
> > > I have gotten to the 404 part in part 3 before deciding to post here.
> > > Almost everything since the very last part of part 2(beginning with HTML)
> > > isn't working. Any help help would be appreciated. I very much need to
> > > know what I am doing wrong. I have the project stored on a flash drive. I
> > > am runningWindows XPwith all updates. Python 2.6.1 I installed django
> > > with ez_install. Thank you for any help you might be able to give
>
> > unregistered users can't view the code. FWIW using a site that denies access
> > to view the code/problem is as helpful as omitting it.  pastebin, paste2,
> > pocoo all are good places to put code and link to it for various places.
>
> > Mike
> > --
> > I will not forget you.
>
> --
> You received this message because you are subscribed to theGoogle 
> Groups"Django users" group.To post to this group, send email 
> todjango-us...@googlegroups.com.to unsubscribe from this group, send email 
> todjango-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-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: Tutorial Problems

2011-03-26 Thread ruler501
I thought it was more useful to have the entire filepath there with
all files

On Mar 26, 9:34 am, delegb...@dudupay.com wrote:
> Do you have problems using pastebin???
> Sent from my BlackBerrywireless devicefrom MTN
>
> -Original Message-
> From: ruler501 <botball.de...@gmail.com>
>
> Sender:django-users@googlegroups.com
> Date: Sat, 26 Mar 2011 07:32:13To: Django 
> users<django-users@googlegroups.com>Reply-To:django-users@googlegroups.com
> Subject: Re: Tutorial Problems
>
> Sorry I tthought that would let you download. Here is another 
> downloadhttp://www.mediafire.com/?aqdav0n22vz2uxt
>
> On Mar 25, 10:13 pm,Mike Ramirez<gufym...@gmail.com> wrote:
> > On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
>
> > > I have been going through the tutorial and this is the code I
> > > currently have:
> > >http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach...
> > > I have gotten to the 404 part in part 3 before deciding to post here.
> > > Almost everything since the very last part of part 2(beginning with HTML)
> > > isn't working. Any help help would be appreciated. I very much need to
> > > know what I am doing wrong. I have the project stored on a flash drive. I
> > > am runningWindows XPwith all updates. Python 2.6.1 I installed django
> > > with ez_install. Thank you for any help you might be able to give
>
> > unregistered users can't view the code. FWIW using a site that denies access
> > to view the code/problem is as helpful as omitting it.  pastebin, paste2,
> > pocoo all are good places to put code and link to it for various places.
>
> > Mike
> > --
> > I will not forget you.
>
> --
> You received this message because you are subscribed to theGoogle 
> Groups"Django users" group.To post to this group, send email 
> todjango-us...@googlegroups.com.to unsubscribe from this group, send email 
> todjango-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-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: Tutorial Problems

2011-03-26 Thread ruler501
I thought it was more useful to have the entire filepath there with
all files

On Mar 26, 9:34 am, delegb...@dudupay.com wrote:
> Do you have problems using pastebin???
> Sent from my BlackBerrywireless devicefrom MTN
>
> -Original Message-
> From: ruler501 <botball.de...@gmail.com>
>
> Sender:django-users@googlegroups.com
> Date: Sat, 26 Mar 2011 07:32:13To: Django 
> users<django-users@googlegroups.com>Reply-To:django-users@googlegroups.com
> Subject: Re: Tutorial Problems
>
> Sorry I tthought that would let you download. Here is another 
> downloadhttp://www.mediafire.com/?aqdav0n22vz2uxt
>
> On Mar 25, 10:13 pm,Mike Ramirez<gufym...@gmail.com> wrote:
> > On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
>
> > > I have been going through the tutorial and this is the code I
> > > currently have:
> > >http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach...
> > > I have gotten to the 404 part in part 3 before deciding to post here.
> > > Almost everything since the very last part of part 2(beginning with HTML)
> > > isn't working. Any help help would be appreciated. I very much need to
> > > know what I am doing wrong. I have the project stored on a flash drive. I
> > > am runningWindows XPwith all updates. Python 2.6.1 I installed django
> > > with ez_install. Thank you for any help you might be able to give
>
> > unregistered users can't view the code. FWIW using a site that denies access
> > to view the code/problem is as helpful as omitting it.  pastebin, paste2,
> > pocoo all are good places to put code and link to it for various places.
>
> > Mike
> > --
> > I will not forget you.
>
> --
> You received this message because you are subscribed to theGoogle 
> Groups"Django users" group.To post to this group, send email 
> todjango-us...@googlegroups.com.to unsubscribe from this group, send email 
> todjango-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-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: Tutorial Problems

2011-03-26 Thread delegbede
Do you have problems using pastebin???
Sent from my BlackBerry wireless device from MTN

-Original Message-
From: ruler501 <botball.de...@gmail.com>
Sender: django-users@googlegroups.com
Date: Sat, 26 Mar 2011 07:32:13 
To: Django users<django-users@googlegroups.com>
Reply-To: django-users@googlegroups.com
Subject: Re: Tutorial Problems

Sorry I tthought that would let you download. Here is another download
http://www.mediafire.com/?aqdav0n22vz2uxt

On Mar 25, 10:13 pm, Mike Ramirez <gufym...@gmail.com> wrote:
> On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
>
> > I have been going through the tutorial and this is the code I
> > currently have:
> >http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach...
> > I have gotten to the 404 part in part 3 before deciding to post here.
> > Almost everything since the very last part of part 2(beginning with HTML)
> > isn't working. Any help help would be appreciated. I very much need to
> > know what I am doing wrong. I have the project stored on a flash drive. I
> > am runningWindows XPwith all updates. Python 2.6.1 I installed django
> > with ez_install. Thank you for any help you might be able to give
>
> unregistered users can't view the code. FWIW using a site that denies access
> to view the code/problem is as helpful as omitting it.  pastebin, paste2,
> pocoo all are good places to put code and link to it for various places.
>
> Mike
> --
> I will not forget 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-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: Tutorial Problems

2011-03-26 Thread ruler501
Sorry I tthought that would let you download. Here is another download
http://www.mediafire.com/?aqdav0n22vz2uxt

On Mar 25, 10:13 pm, Mike Ramirez  wrote:
> On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
>
> > I have been going through the tutorial and this is the code I
> > currently have:
> >http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach...
> > I have gotten to the 404 part in part 3 before deciding to post here.
> > Almost everything since the very last part of part 2(beginning with HTML)
> > isn't working. Any help help would be appreciated. I very much need to
> > know what I am doing wrong. I have the project stored on a flash drive. I
> > am runningWindows XPwith all updates. Python 2.6.1 I installed django
> > with ez_install. Thank you for any help you might be able to give
>
> unregistered users can't view the code. FWIW using a site that denies access
> to view the code/problem is as helpful as omitting it.  pastebin, paste2,
> pocoo all are good places to put code and link to it for various places.
>
> Mike
> --
> I will not forget 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-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: Tutorial Problems

2011-03-26 Thread southof40
Yes put the code on pastebin and can you be a bit more explicit about
the last thing that behaved as the tut says it should and the first
thing that doesn't ? (I appreciate the latter should be derived from
the former but just in case !).

Also might be worth checking what version of Django you've ended up
with ... try this if you're unsure ...

>>> import django
>>> print django.VERSION
(1, 2, 5, 'final', 0)


On Mar 26, 4:13 pm, Mike Ramirez  wrote:
> On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
>
> > I have been going through the tutorial and this is the code I
> > currently have:
> >http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach...
> > I have gotten to the 404 part in part 3 before deciding to post here.
> > Almost everything since the very last part of part 2(beginning with HTML)
> > isn't working. Any help help would be appreciated. I very much need to
> > know what I am doing wrong. I have the project stored on a flash drive. I
> > am running Windows XP with all updates. Python 2.6.1 I installed django
> > with ez_install. Thank you for any help you might be able to give
>
> unregistered users can't view the code. FWIW using a site that denies access
> to view the code/problem is as helpful as omitting it.  pastebin, paste2,
> pocoo all are good places to put code and link to it for various places.
>
> Mike
> --
> I will not forget 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-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: Tutorial Problems

2011-03-25 Thread Mike Ramirez
On Friday, March 25, 2011 08:03:30 pm ruler501 wrote:
> I have been going through the tutorial and this is the code I
> currently have:
> http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach=6834
> I have gotten to the 404 part in part 3 before deciding to post here.
> Almost everything since the very last part of part 2(beginning with HTML)
> isn't working. Any help help would be appreciated. I very much need to
> know what I am doing wrong. I have the project stored on a flash drive. I
> am running Windows XP with all updates. Python 2.6.1 I installed django
> with ez_install. Thank you for any help you might be able to give

unregistered users can't view the code. FWIW using a site that denies access 
to view the code/problem is as helpful as omitting it.  pastebin, paste2, 
pocoo all are good places to put code and link to it for various places.


Mike
-- 
I will not forget 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-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.



Tutorial Problems

2011-03-25 Thread ruler501
I have been going through the tutorial and this is the code I
currently have: 
http://www.omnimaga.org/index.php?action=dlattach;topic=7310.0;attach=6834
I have gotten to the 404 part in part 3 before deciding to post here.
Almost everything since the very last part of part 2(beginning with
HTML) isn't working. Any help help would be appreciated. I very much
need to know what I am doing wrong. I have the project stored on a
flash drive. I am running Windows XP with all updates. Python 2.6.1 I
installed django with ez_install. Thank you for any help you might be
able to give

-- 
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: Tutorial problems

2010-06-27 Thread Kenneth Gonsalves
On Sunday 27 June 2010 20:59:14 Darren wrote:
> If you are using apache on Debian Linux, /etc/init.d/apache restart. Other
>  Linux distros and Mac look for apachectrl. 
> 
apachectl on others and apache2ctl on debian
-- 
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

-- 
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: Tutorial problems

2010-06-27 Thread Gabriel Gayan
just rerun the server using


python manage.py runserver


Cheers

On Sun, Jun 27, 2010 at 10:49 AM, zippzom  wrote:

> How does one go about restarting the server?
>
> Thanks in advance!
>
> On Jun 25, 10:37 pm, Michael Schade  wrote:
> > As Gabriel mentioned, make sure you reran the server after making the
> > changes (though if using runserver, it should handle that for you). Also
> > make sure you did not miss this bit in the tutorial:
> >
> > "Wait a minute.  is, utterly, an unhelpful
> representation
> > of this object. Let's fix that by editing the polls model (in the
> > polls/models.py file) and adding a
> > __unicode__()<
> http://docs.djangoproject.com/en/dev/ref/models/instances/#django.db>
> > method
> > to both Poll and Choice:"
> >
> > class Poll(models.Model):
> > # ...
> > def __unicode__(self):
> > return self.question
> >
> > Sincerely,
> > Michael Schade
> > Spearhead Development LLC
> >
> > On Fri, Jun 25, 2010 at 5:54 PM, Gabriel Gayan  >wrote:
> >
> > > Have you tried re-running the server after saving the changes?
> > > the tutorial worked perfectly for me.
> >
> > > On Fri, Jun 25, 2010 at 1:16 PM, zippzom  wrote:
> >
> > >> So, i'm working through the tutorial, but i'm having a problem with
> > >> the unicode method in the part 1 writing your own apps. I've copied
> > >> the code to the letter, but it still only returns 
> > >> instead . Any ideas why this could be happening?
> >
> > >> Sorry if this is the wrong place to post this.
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "Django users" group.
> > >> To post to this group, send email to django-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.
> >
> > > --
> > > Gabriel Gayan
> >
> > > --
> > > 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.
>
> --
> 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.
>
>


-- 
Gabriel Gayan

-- 
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: Tutorial problems

2010-06-27 Thread Darren
If you are using apache on Debian Linux, /etc/init.d/apache restart. Other 
Linux distros and Mac look for apachectrl. 

Darren

On Jun 27, 2010, at 9:49 AM, zippzom  wrote:

> How does one go about restarting the server?
> 
> Thanks in advance!
> 
> On Jun 25, 10:37 pm, Michael Schade  wrote:
>> As Gabriel mentioned, make sure you reran the server after making the
>> changes (though if using runserver, it should handle that for you). Also
>> make sure you did not miss this bit in the tutorial:
>> 
>> "Wait a minute.  is, utterly, an unhelpful representation
>> of this object. Let's fix that by editing the polls model (in the
>> polls/models.py file) and adding a
>> __unicode__()
>> method
>> to both Poll and Choice:"
>> 
>> class Poll(models.Model):
>> # ...
>> def __unicode__(self):
>> return self.question
>> 
>> Sincerely,
>> Michael Schade
>> Spearhead Development LLC
>> 
>> On Fri, Jun 25, 2010 at 5:54 PM, Gabriel Gayan wrote:
>> 
>>> Have you tried re-running the server after saving the changes?
>>> the tutorial worked perfectly for me.
>> 
>>> On Fri, Jun 25, 2010 at 1:16 PM, zippzom  wrote:
>> 
 So, i'm working through the tutorial, but i'm having a problem with
 the unicode method in the part 1 writing your own apps. I've copied
 the code to the letter, but it still only returns 
 instead . Any ideas why this could be happening?
>> 
 Sorry if this is the wrong place to post this.
>> 
 --
 You received this message because you are subscribed to the Google Groups
 "Django users" group.
 To post to this group, send email to django-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.
>> 
>>> --
>>> Gabriel Gayan
>> 
>>> --
>>> 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.
> 
> -- 
> 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.
> 

-- 
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: Tutorial problems

2010-06-27 Thread zippzom
How does one go about restarting the server?

Thanks in advance!

On Jun 25, 10:37 pm, Michael Schade  wrote:
> As Gabriel mentioned, make sure you reran the server after making the
> changes (though if using runserver, it should handle that for you). Also
> make sure you did not miss this bit in the tutorial:
>
> "Wait a minute.  is, utterly, an unhelpful representation
> of this object. Let's fix that by editing the polls model (in the
> polls/models.py file) and adding a
> __unicode__()
> method
> to both Poll and Choice:"
>
> class Poll(models.Model):
>     # ...
>     def __unicode__(self):
>         return self.question
>
> Sincerely,
> Michael Schade
> Spearhead Development LLC
>
> On Fri, Jun 25, 2010 at 5:54 PM, Gabriel Gayan wrote:
>
> > Have you tried re-running the server after saving the changes?
> > the tutorial worked perfectly for me.
>
> > On Fri, Jun 25, 2010 at 1:16 PM, zippzom  wrote:
>
> >> So, i'm working through the tutorial, but i'm having a problem with
> >> the unicode method in the part 1 writing your own apps. I've copied
> >> the code to the letter, but it still only returns 
> >> instead . Any ideas why this could be happening?
>
> >> Sorry if this is the wrong place to post this.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Django users" group.
> >> To post to this group, send email to django-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.
>
> > --
> > Gabriel Gayan
>
> > --
> > 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.

-- 
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: Tutorial problems

2010-06-25 Thread Michael Schade
As Gabriel mentioned, make sure you reran the server after making the
changes (though if using runserver, it should handle that for you). Also
make sure you did not miss this bit in the tutorial:

"Wait a minute.  is, utterly, an unhelpful representation
of this object. Let's fix that by editing the polls model (in the
polls/models.py file) and adding a
__unicode__()
method
to both Poll and Choice:"

class Poll(models.Model):
# ...
def __unicode__(self):
return self.question

Sincerely,
Michael Schade
Spearhead Development LLC

On Fri, Jun 25, 2010 at 5:54 PM, Gabriel Gayan wrote:

> Have you tried re-running the server after saving the changes?
> the tutorial worked perfectly for me.
>
> On Fri, Jun 25, 2010 at 1:16 PM, zippzom  wrote:
>
>> So, i'm working through the tutorial, but i'm having a problem with
>> the unicode method in the part 1 writing your own apps. I've copied
>> the code to the letter, but it still only returns 
>> instead . Any ideas why this could be happening?
>>
>> Sorry if this is the wrong place to post this.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-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.
>>
>>
>
>
> --
> Gabriel Gayan
>
> --
> 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.
>

-- 
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: Tutorial problems

2010-06-25 Thread Gabriel Gayan
Have you tried re-running the server after saving the changes?
the tutorial worked perfectly for me.

On Fri, Jun 25, 2010 at 1:16 PM, zippzom  wrote:

> So, i'm working through the tutorial, but i'm having a problem with
> the unicode method in the part 1 writing your own apps. I've copied
> the code to the letter, but it still only returns 
> instead . Any ideas why this could be happening?
>
> Sorry if this is the wrong place to post this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-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.
>
>


-- 
Gabriel Gayan

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



Tutorial problems

2010-06-25 Thread Bradley Hintze
Hi all,

I just installed Django using MacPorts on snow leopard and
django-admin.py cannot be found anywhere on my computer, thus I cant
do the tutorial. Also, the recommendation was given to place
/opt/local/lib/python2.4/site-packages/django/bin in a $PATH but that
given path is non-existant on my computer.

any idea?

-- 
Bradley J. Hintze
Graduate Student
Duke University
School of Medicine
801-712-8799

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



Tutorial problems

2010-06-25 Thread zippzom
So, i'm working through the tutorial, but i'm having a problem with
the unicode method in the part 1 writing your own apps. I've copied
the code to the letter, but it still only returns 
instead . Any ideas why this could be happening?

Sorry if this is the wrong place to post this.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-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.