Created
May 19, 2013 00:12
-
-
Save carmi/5606179 to your computer and use it in GitHub Desktop.
HIT: http://localhost:8000/api/geoperson/?format=json Respones:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error_message": "dehydrate() got an unexpected keyword argument 'for_list'", | |
"traceback": "Traceback (most recent call last):\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 217, in wrapper\n response = callback(request, *args, **kwargs)\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 459, in dispatch_list\n return self.dispatch('list', request, **kwargs)\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 491, in dispatch\n response = method(request, **kwargs)\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 1310, in get_list\n bundles.append(self.full_dehydrate(bundle, for_list=True))\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 865, in full_dehydrate\n bundle.data[field_name] = field_object.dehydrate(bundle, for_list=for_list)\n\nTypeError: dehydrate() got an unexpected keyword argument 'for_list'\n" | |
} |
nehagaming12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/usr/bin/python
-- coding: UTF-8 --
from distutils.cmd import Command
from os import system, name
import itertools
import threading
import time
import sys
import random
import datetime
from base64 import b64decode,b64encode
from datetime import date
from time import sleep
from alive_progress import alive_bar
expirydate = datetime.date(2021, 9, 24)
#expirydate = datetime.date(2021, 8, 30)
today=date.today()
green="\033[3;32m"
neon="\033[3;36m"
nc="\033[00m"
red="\033[3;31m"
purple="\033[3;34m"
yellow="\033[3;33m"
voilet="\033[3;35m"
def hero():
def load():
# for i in tqdm(range(10)):
# sleep(0.1)
with alive_bar(100, force_tty=True) as bar:
for i in range(100):
time.sleep(0.7)
bar()
if(expirydate>today):
now = datetime.datetime.now()
First = now.replace(hour=13, minute=55, second=0, microsecond=0)
Firstend = now.replace(hour=14, minute=35, second=0, microsecond=0)
Second = now.replace(hour=16, minute=25, second=0, microsecond=0)
Secondend = now.replace(hour=17, minute=35, second=0, microsecond=0)
Third = now.replace(hour=15, minute=55, second=0, microsecond=0)
Thirdend = now.replace(hour=16, minute=35, second=0, microsecond=0)
Final = now.replace(hour=17, minute=55, second=0, microsecond=0)
Finalend = now.replace(hour=18, minute=35, second=0, microsecond=0)
else:
def clear():
# for windows
if name == 'nt':
_ = system('cls')
# for mac and linux(here, os.name is 'posix')
else:
_ = system('clear')
code="DEEPAK"
code1="NEHA"
code2="842DS"
test="S3"
night="3"
nextday="DXS"
banner='figlet COOE|lolcat'
rava=20220501391
now = datetime.datetime.now()
Second = now.replace(hour=10, minute=55, second=0, microsecond=0)
Secondend = now.replace(hour=14, minute=55, second=0, microsecond=0)
Third = now.replace(hour=15, minute=30, second=0, microsecond=0)
Thirdend = now.replace(hour=18, minute=34, second=0, microsecond=0)
Final = now.replace(hour=18, minute=35, second=0, microsecond=0)
Finalend = now.replace(hour=22, minute=35, second=0, microsecond=0)