These are chat archives for django/django

24th
Feb 2016
sumit sinha
@sumitsinha91
Feb 24 2016 04:40
hello
i need help on django
i have install django on my ubuntu
but i am unable to start my server
installing time i am able to use admin panal
and can anyone help me how to start new apps and how i will develop new project using django
if anyone have documents regarding developments so please share with me
吴羽舒
@LeslieZhu
Feb 24 2016 05:02
what error messages have you got? Have you add your ‘app’ in settings.py ISNTALL_APP element?
sumit sinha
@sumitsinha91
Feb 24 2016 07:40
how?
/home/sumit/Desktop/Screenshot from 2016-02-24 13-10-12.png
Benjamin
@pushad
Feb 24 2016 08:03
kek^
use imgur for example to share screenshots
here for example: http://imgur.com/
upload, then share the url here
agent3bood
@agent3bood
Feb 24 2016 08:52
@sumitsinha91 the best place to start
sumit sinha
@sumitsinha91
Feb 24 2016 20:25
hello
i need help
i am adding this Mobile Number = models.IntegerField(default=0)
but i am getting error
why ?
error= Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0xb65207c4>
Traceback (most recent call last):
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(args, **kwargs)
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
six.reraise(
_exception)
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(args, *kwargs)
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/home/sumit/trydjango19/lib/python3.4/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/home/sumit/trydjango19/lib/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1467, in exec_module
File "<frozen importlib._bootstrap>", line 1572, in get_code
File "<frozen importlib._bootstrap>", line 1532, in source_to_code
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/home/sumit/trydjango19/src/fetchrletter/models.py", line 8
Mobile Number = models.MobileField()
help me
why i am geeting this error
Sergey
@armicron
Feb 24 2016 20:27
write variable name without spaces
mobile_number
Job Matheka
@jobm
Feb 24 2016 20:31
Its good practice to do this mobile_number = models.IntegerField(default=0)
Sergey
@armicron
Feb 24 2016 20:33
also
"Phone numbers must be CharFields. Integer field will not preserve leading 0, +, and spacing."
Job Matheka
@jobm
Feb 24 2016 20:37
@armicron is right you want char filed to sore the phone_number in its format maybe retrieve just the digits if you want to use it for something different
Aaron Kazah
@AaronKazah
Feb 24 2016 21:35
Quick questions guys, how would I go about iabout creating a featured list