Hi,

here are following issues are getting.

I have filled tables "project_project" and "user_user". please let me know 
another tables name for  add row to solve ValidationsError Issue

--------------------------------------------------------------------------------------------------------
Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 1.9.8
Python Version: 3.5.2
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'compressor',
 'bootstrap3',
 'captcha',
 'mptt',
 'corsheaders',
 'dbbackup',
 'django_extensions',
 'mathfilters',
 'rest_framework',
 'rest_framework.authtoken',
 'social.apps.django_app.default',
 'brickly.framework',
 'brickly.system.project',
 'brickly.account.user',
 'brickly.account.email',
 'brickly.account.social',
 'brickly.account.address',
 'brickly.account.contact',
 'brickly.account.group',
 'brickly.account.history',
 'brickly.cms.content',
 'brickly.commerce.driver',
 'brickly.commerce.delivery',
 'brickly.system.verification',
 'brickly.system.location',
 'brickly.system.db',
 'brickly.system.upload',
 'brickly.hr.goodhire',
 'raven.contrib.django.raven_compat',
 'baf',
 'haystack')
Installed Middleware:
('raven.contrib.django.middleware.SentryMiddleware',
 'threadlocals.middleware.ThreadLocalMiddleware',
 'brickly.framework.middleware.BricklyMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'brickly.account.user.middleware.LocaleMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'brickly.account.user.middleware.TimezoneMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'social.apps.django_app.middleware.SocialAuthExceptionMiddleware')



Traceback:

File "/usr/lib/python3.5/json/decoder.py" in raw_decode
  355.             obj, end = self.scan_once(s, idx)

During handling of the above exception (0), another exception occurred:

File 
"/usr/local/lib/python3.5/dist-packages/social/apps/django_app/default/fields.py"
 
in to_python
  42.                 return json.loads(value)

File "/usr/lib/python3.5/json/__init__.py" in loads
  319.         return _default_decoder.decode(s)

File "/usr/lib/python3.5/json/decoder.py" in decode
  339.         obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "/usr/lib/python3.5/json/decoder.py" in raw_decode
  357.             raise JSONDecodeError("Expecting value", s, err.value) 
from None

During handling of the above exception (Expecting value: line 1 column 1 
(char 0)), another exception occurred:

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" 
in get_response
  123.                 response = middleware_method(request)

File "/home/user/django-project/brickly/framework/middleware.py" in 
process_request
  18.             request.project = Project.objects.get(id=1)

File "/usr/local/lib/python3.5/dist-packages/django/db/models/manager.py" 
in manager_method
  122.                 return getattr(self.get_queryset(), name)(*args, 
**kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py" in 
get
  381.         num = len(clone)

File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py" in 
__len__
  240.         self._fetch_all()

File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py" in 
_fetch_all
  1074.             self._result_cache = list(self.iterator())

File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py" in 
__iter__
  68.         for row in compiler.results_iter(results):

File 
"/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py" 
in results_iter
  808.                     row = self.apply_converters(row, converters)

File 
"/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py" 
in apply_converters
  792.                 value = converter(value, expression, 
self.connection, self.query.context)

File 
"/usr/local/lib/python3.5/dist-packages/social/apps/django_app/default/fields.py"
 
in from_db_value
  24.         return self.to_python(value)

File 
"/usr/local/lib/python3.5/dist-packages/social/apps/django_app/default/fields.py"
 
in to_python
  44.                 raise ValidationError(str(err))

Exception Type: ValidationError at /
Exception Value: ['Expecting value: line 1 column 1 (char 0)']

--------------------------------------------------------------------------------------------------------

On Wednesday, April 12, 2017 at 5:31:19 AM UTC+5:30, Camilo Torres wrote:
>
> Hi
> 1) How did you solved the first issue? You should be supposed to solve it 
> by adding a row to a database table (the one related to your Project model) 
> with id=1.
> 2) You have not pasted enough information for your ValidationError issue, 
> please don't paste screen shots (at least, not only a screen shot). Please 
> paste the entire stack trace you get in the terminal running the server. 
> You may also consider pasting relevant code you think is related to the 
> error, though someone can ask for the code or configuration after looking 
> at the entire stack trace.
>
> On Tuesday, April 11, 2017 at 9:52:27 AM UTC-4, ni...@linkites.com wrote:
>>
>> Hi,
>>
>> Previous error solve and thanks for that.
>>
>> now i am getting new error of ValidationError Please see below screen 
>> shot.
>> Please let me know of what is the problem now.
>>
>>
>> <https://lh3.googleusercontent.com/-F1-7S1-tH9g/WOzfhUOTAWI/AAAAAAAAAeU/D2GRF3O8AQ8YnThyRRbJ_XUtI5yRYX0lwCLcB/s1600/Screenshot%2Bfrom%2B2017-04-11%2B19-21-51.png>
>>
>>
>> On Tuesday, April 11, 2017 at 4:38:30 PM UTC+5:30, ni...@linkites.com 
>> wrote:
>>>
>>> Hi,
>>>
>>> I have setup existing django project at localsystem and its migrate 
>>> successfully.
>>> after migrate i have run following "python manage.py runserver" to run 
>>> django project.
>>>
>>> After that i am getting error message "Project matching query does not 
>>> exist." on terminal and as well as browser.
>>>
>>> Please let me know of what is problem.
>>>
>>>
>>>
>>> Please help me to solve this issue.
>>>
>>> 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/4b0b6a92-f309-4011-8588-df9599f80921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to