NoReverseMatch at /project/p/dd4ac98f/

Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\-]+)/$']
Request Method: GET
Request URL: https://scitok.com/project/p/dd4ac98f/
Django Version: 3.2.9
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\-]+)/$']
Exception Location: /usr/local/lib/python3.8/site-packages/django/urls/resolvers.py, line 694, in _reverse_with_prefix
Python Executable: /usr/local/bin/python
Python Version: 3.8.18
Python Path:
['/usr/src',
 '/var/app/venv/staging-LQM1lest/bin',
 '/usr/local/lib/python38.zip',
 '/usr/local/lib/python3.8',
 '/usr/local/lib/python3.8/lib-dynload',
 '/usr/local/lib/python3.8/site-packages']
Server time: Tue, 19 Mar 2024 04:53:37 +0000

Error during template rendering

In template /usr/src/templates/base.html, error at line 172

Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\-]+)/$']

162 </div>
163 <div class="navbar-searchbox-container">
164 <form class="navbar-form" method="GET" action="{% url 'search:search_result' %}">
165
166 <div class="input-group">
167 <div class="input-group-btn">
168 <button class="normal-btn-2" type="submit">
169 <i class="fas fa-search"></i>
170 </button>
171 </div>
172 <input name="query" type="search" class="form-control textarea-1" id="navbar-searchbox" placeholder="Search">
173
174
175 </div>
176 </form>
177 </div>
178 <div class="float-right">
179 {% if user.is_authenticated %}
180 <ul class="navbar-nav ml-auto">
181 <li class="nav-item m-l-12">
182 <a class="nav-link hover-dropdown-link p-t-0 p-b-10" data-toggle="dropdown" href="#">

Traceback Switch to copy-and-paste view



Request information

USER

AnonymousUser

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
CSRF_COOKIE
'mJ50ikA2Cumm4EceOX293Fk5ju4itCAqaw4YAlwGx1Pf4ZSgycnjScsQl20sjmuk'
CSRF_COOKIE_USED
True
HTTP_ACCEPT
'*/*'
HTTP_HOST
'scitok.com'
HTTP_USER_AGENT
'claudebot'
HTTP_X_AMZN_TRACE_ID
'Root=1-65f91a51-701c498341ebb6ee620df294'
HTTP_X_FORWARDED_FOR
'54.226.25.246'
HTTP_X_FORWARDED_PORT
'443'
HTTP_X_FORWARDED_PROTO
'https'
PATH_INFO
'/project/p/dd4ac98f/'
QUERY_STRING
''
REMOTE_ADDR
'172.31.21.199'
REMOTE_HOST
'172.31.21.199'
REMOTE_PORT
2504
REQUEST_METHOD
'GET'
SCRIPT_NAME
''
SERVER_NAME
'172.18.0.2'
SERVER_PORT
'8000'
wsgi.multiprocess
True
wsgi.multithread
True

Settings

Using settings module scihub.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['localhost',
 '127.0.0.1',
 '0.0.0.0',
 '.nettrons.com',
 '.scitok.com',
 'scihub-env.eba-ifahbsa4.us-west-1.elasticbeanstalk.com',
 'awseb-awseb-1lskhbm3e522j-279235258.us-west-1.elb.amazonaws.com',
 'Scihub-env-test.eba-ifahbsa4.us-west-1.elasticbeanstalk.com',
 '.clay.run',
 '.clay.com',
 'www.scihub.local',
 'app.scihub.local',
 '172.31.26.185']
APPEND_SLASH
True
ASGI_APPLICATION
'scihub.asgi.application'
AUTHENTICATION_BACKENDS
['accounts.backends.EmailBackend',
 'social_core.backends.open_id.OpenIdAuth',
 'social_core.backends.google.GoogleOAuth2',
 'social_core.backends.google.GoogleOAuth',
 'django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_PROFILE_MODULE
'accounts.UserProfile'
AUTH_USER_MODEL
'auth.User'
BASE_DIR
'/usr/src'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CHANNEL_LAYERS
{'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer',
             'CONFIG': {'hosts': [('scitko-redis.uk21vm.ng.0001.usw1.cache.amazonaws.com',
                                   6379)]}}}
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'HOST': 'scihub-restore.ctu1praghneq.us-west-1.rds.amazonaws.com',
             'NAME': 'scihub',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '5432',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'xiaoyan'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.AutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'main.custom_storage.MediaStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_HASHING_ALGORITHM
'sha256'
DEFAULT_HOST
'www'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
DJANGO_NOTIFICATIONS_CONFIG
{'USE_JSONFIELD': True}
EC2_PRIVATE_IP
'172.31.26.185'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'smtp.sendgrid.net'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'apikey'
EMAIL_PORT
587
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
True
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['model_clone',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django.contrib.postgres',
 'main',
 'scihubhome',
 'accounts',
 'project',
 'feed',
 'comment',
 'collection',
 'event',
 'tags',
 'tracker',
 'follow',
 'qa',
 'search',
 'inbox',
 'notes',
 'job',
 'api',
 'refer',
 'taggit',
 'widget_tweaks',
 'social_django',
 'notifications',
 'django_summernote',
 'rest_framework',
 'django_hosts',
 'channels',
 'mptt']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('ar-dz', 'Algerian Arabic'),
 ('ast', 'Asturian'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('dsb', 'Lower Sorbian'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-au', 'Australian English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-co', 'Colombian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan Spanish'),
 ('et', 'Estonian'),
 ('eu', 'Basque'),
 ('fa', 'Persian'),
 ('fi', 'Finnish'),
 ('fr', 'French'),
 ('fy', 'Frisian'),
 ('ga', 'Irish'),
 ('gd', 'Scottish Gaelic'),
 ('gl', 'Galician'),
 ('he', 'Hebrew'),
 ('hi', 'Hindi'),
 ('hr', 'Croatian'),
 ('hsb', 'Upper Sorbian'),
 ('hu', 'Hungarian'),
 ('hy', 'Armenian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('ig', 'Igbo'),
 ('io', 'Ido'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kab', 'Kabyle'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('ky', 'Kyrgyz'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('mr', 'Marathi'),
 ('my', 'Burmese'),
 ('nb', 'Norwegian Bokmål'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('nn', 'Norwegian Nynorsk'),
 ('os', 'Ossetic'),
 ('pa', 'Punjabi'),
 ('pl', 'Polish'),
 ('pt', 'Portuguese'),
 ('pt-br', 'Brazilian Portuguese'),
 ('ro', 'Romanian'),
 ('ru', 'Russian'),
 ('sk', 'Slovak'),
 ('sl', 'Slovenian'),
 ('sq', 'Albanian'),
 ('sr', 'Serbian'),
 ('sr-latn', 'Serbian Latin'),
 ('sv', 'Swedish'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('tg', 'Tajik'),
 ('th', 'Thai'),
 ('tk', 'Turkmen'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('uz', 'Uzbek'),
 ('vi', 'Vietnamese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'fa', 'ur']
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MEDIA_ROOT
''
MEDIA_URL
'/django-summernote/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django_hosts.middleware.HostsRequestMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'social_django.middleware.SocialAuthExceptionMiddleware',
 'django_hosts.middleware.HostsResponseMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NOTIFICATIONS_NOTIFICATION_MODEL
'notifications.Notification'
NUMBER_GROUPING
0
PARENT_HOST
'scitok.com'
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PREPEND_WWW
False
PROJECT_DIR
'/usr/src/scihub'
ROOT_HOSTCONF
'scihub.hosts'
ROOT_URLCONF
'scihub.urls'
S3_BUCKET
'scitok'
SECRET_KEY
'********************'
SECURE_BROWSER_XSS_FILTER
False
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
['^healthcheck$']
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
True
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
'scitok.com'
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sharesession'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'scihub.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
'********************'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
'********************'
SOCIAL_AUTH_LOGIN_REDIRECT_URL
'/'
SOCIAL_AUTH_PIPELINE
('social.pipeline.social_auth.social_details',
 'social.pipeline.social_auth.social_uid',
 'social.pipeline.social_auth.auth_allowed',
 'social.pipeline.social_auth.social_user',
 'social.pipeline.user.get_username',
 'social_core.pipeline.social_auth.associate_by_email',
 'social.pipeline.user.create_user',
 'social.pipeline.social_auth.associate_user',
 'social.pipeline.social_auth.load_extra_data',
 'social.pipeline.user.user_details',
 'accounts.pipeline.get_avatar')
SOCIAL_AUTH_POSTGRES_JSONFIELD
True
SOCIAL_AUTH_REDIRECT_IS_HTTPS
True
SOCIAL_AUTH_URL_NAMESPACE
'social'
STATICFILES_DIRS
['/usr/src/static']
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
'/usr/src/scihub/static'
STATIC_URL
'/static/'
STRIPE_API_KEY
'********************'
SUMMERNOTE_THEME
'lite'
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['/usr/src/templates'],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages',
                                     'social_django.context_processors.backends',
                                     'social_django.context_processors.login_redirect']}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'UTC'
USE_I18N
True
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'scihub.wsgi.application'
X_FRAME_OPTIONS
'SAMEORIGIN'
YEAR_MONTH_FORMAT
'F Y'

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.