That doesn't help so much as there's no context information. Nice
to see the 'sysadmin' bit which wasn't in your original post.
Google throws up a lot of things for that:

http://www.google.nl/search?q=invalid+literal+for+int%28%29+with+
base+10%3A+%27sysadmin

--
Jon Black
www.jonblack.org


On Thu, Jul 5, 2012, at 02:17, Barry Morrison wrote:

  Apologies, here is the error output if it helps.

ValueError at /favs/Reddit/sysadmin/

invalid literal for int() with base 10: 'sysadmin'

Request Method: GET
Request URL: http://127.0.0.1:8000/favs/Reddit/sysadmin/
Django Version: 1.4
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: 'sysadmin'

Exception Location:
/home/bmorriso/LocalRepository/Myosotis/venv/local/lib/python2.7/
site-packages/django/db/models/fields/__init__.py in
get_prep_value, line 537
Python Executable:
/home/bmorriso/LocalRepository/Myosotis/venv/bin/python
Python Version: 2.7.3
Python Path:
['/home/bmorriso/LocalRepository/Myosotis/venv/local/lib/python2.7/site-pa
ckages/requests/packages',
 '/home/bmorriso/LocalRepository/Myosotis',
 '/home/bmorriso/LocalRepository/Myosotis/venv/local/lib/python2.7/site-pa
ckages/setuptools-0.6c11-py2.7.egg',
 '/home/bmorriso/LocalRepository/Myosotis/venv/local/lib/python2.7/site-pa
ckages/pip-1.1-py2.7.egg',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/site-packages
/setuptools-0.6c11-py2.7.egg',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/site-packages
/pip-1.1-py2.7.egg',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/plat-linux2',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/lib-tk',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/lib-old',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/bmorriso/LocalRepository/Myosotis/venv/local/lib/python2.7/site-pa
ckages',
 '/home/bmorriso/LocalRepository/Myosotis/venv/lib/python2.7/site-packages
']

Server time: Thu, 5 Jul 2012 02:03:21 -0700

  On Thursday, July 5, 2012 2:13:59 AM UTC-7, Jon Black wrote:

I'm not sure without running it, which I can't do now. I have
noticed that your slug is not and id, but the field PostSubReddit
is a foerignkey which might expect an id.

Unrelated, I think your models shouldn't be pluralised (e.g. Post
instead of Posts). If you want the table name to be plural, use
the Meta class.

--
Jon Black
[1]www.jonblack.org


On Thu, Jul 5, 2012, at 02:07, Barry Morrison wrote:

  I've been beating my head against this all night and now into
  the morning...I have NO idea what I'm doing wrong and Google
  and Stack Overflow haven't been as helpful as I had hoped.
  [2]https://gist.github.com/7dc0b98a2fe056379ae8
  Any help or guidance would be greatly appreciated!
  Thanks!!


  --
  You received this message because you are subscribed to the
  Google Groups "Django users" group.
  To view this discussion on the web visit
  [3]https://groups.google.com/d/msg/django-users/-/
  zgmrTPX9yIEJ.
  To post to this group, send email to
  [4]django-users@googlegroups.com.
  To unsubscribe from this group, send email to
  [5]django-users+unsubscr...@googlegroups.com.
  For more options, visit this group at
  [6]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 view this discussion on the web visit
  [7]https://groups.google.com/d/msg/django-users/-/aXIXIb3UGegJ
  .
  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.

References

1. http://www.jonblack.org/
2. https://gist.github.com/7dc0b98a2fe056379ae8
3. https://groups.google.com/d/msg/django-users/-/zgmrTPX9yIEJ
4. mailto:django-users@googlegroups.com
5. mailto:django-users%2bunsubscr...@googlegroups.com
6. http://groups.google.com/group/django-users?hl=en
7. https://groups.google.com/d/msg/django-users/-/aXIXIb3UGegJ

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

Reply via email to