Linux premium242.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
LiteSpeed
Server IP : 66.29.146.154 & Your IP : 216.73.216.6
Domains :
Cant Read [ /etc/named.conf ]
User : tukiwyzk
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
tukiwyzk /
helpgaza /
Delete
Unzip
Name
Size
Permission
Date
Action
-p
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
customsearch
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
mysearchengine
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
public
[ DIR ]
drwxr-xr-x
2025-10-17 07:59
searchapp
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
static
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
staticfiles
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
templates
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
test_data
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
tmp
[ DIR ]
drwxr-xr-x
2025-10-17 07:59
venv
[ DIR ]
drwxrwxrwx
2025-10-17 07:59
.htaccess
197
B
-r--r--r--
2025-10-17 07:59
DEPLOYMENT_GUIDE.md
4.68
KB
-rw-rw-rw-
2025-08-23 14:13
LOCAL_TESTING_GUIDE.md
4.57
KB
-rw-rw-rw-
2025-08-23 14:16
TODO.md
1.42
KB
-rw-rw-rw-
2025-08-23 16:07
backend_test_log.txt
41
B
-rw-rw-rw-
2025-08-23 16:04
base.html
2.5
KB
-rw-rw-rw-
2025-08-23 15:21
db.sqlite3
132
KB
-rw-rw-rw-
2025-08-23 14:24
deploy.sh
3.45
KB
-rw-rw-rw-
2025-08-23 14:12
final_test.py
1.69
KB
-rw-rw-rw-
2025-08-23 14:44
gunicorn.service
323
B
-rw-rw-rw-
2025-08-23 14:11
import_data.py
1.5
KB
-rw-rw-rw-
2025-08-23 14:10
local_setup.py
4.93
KB
-rw-rw-rw-
2025-08-23 14:15
manage.py
670
B
-rw-rw-rw-
2025-08-23 14:23
nginx_config.conf
2.08
KB
-rw-rw-rw-
2025-08-23 14:11
passenger_wsgi.py
66
B
-rw-r--r--
2025-08-23 16:59
performance_results.txt
539
B
-rw-rw-rw-
2025-08-23 16:06
performance_test.py
1.54
KB
-rw-rw-rw-
2025-08-23 16:05
requirements.txt
131
B
-rw-rw-rw-
2025-08-23 16:45
run_local.sh
1014
B
-rw-rw-rw-
2025-08-23 14:17
setup_mysql.sql
214
B
-rw-rw-rw-
2025-08-23 14:10
stderr.log
85.13
KB
-rw-r--r--
2025-12-09 11:53
test_backend.py
989
B
-rw-rw-rw-
2025-08-23 14:29
test_backend_fixed.py
1.2
KB
-rw-rw-rw-
2025-08-23 14:31
test_backend_with_log.py
1.13
KB
-rw-rw-rw-
2025-08-23 14:30
test_complete.py
2.41
KB
-rw-rw-rw-
2025-08-23 14:34
test_results.txt
406
B
-rw-rw-rw-
2025-08-23 14:45
wp-blog-header.php
2.73
KB
-rw-r--r--
2025-10-17 07:59
wp-cron.php
2.73
KB
-rw-r--r--
2025-10-17 07:59
Save
Rename
import sys import os import django from django.test import TestCase, RequestFactory from django.conf import settings # Set up Django environment os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysearchengine.settings') django.setup() from searchapp.views import search def test_frontend(): """Test that frontend files exist and are accessible""" print("Testing frontend components...") # Check if base.html exists if os.path.exists('base.html'): print("✅ base.html found") else: print("❌ base.html not found") return False # Check if image exists if os.path.exists('muimg.jpeg'): print("✅ muimg.jpeg found") else: print("❌ muimg.jpeg not found") return False # Check if templates directory exists if os.path.exists('templates'): print("✅ templates directory found") else: print("❌ templates directory not found") return False print("✅ Frontend test passed!") return True def test_backend(): """Test backend search functionality""" print("Testing backend search functionality...") # Create a mock request factory = RequestFactory() request = factory.get('/search/?q=python+tutorial') # Call the search view try: response = search(request) print(f"✅ Search view executed successfully") print(f"Response status: {response.status_code}") print(f"Response content type: {response['Content-Type']}") print("✅ Backend test passed!") return True except Exception as e: print(f"❌ Error in search view: {e}") import traceback traceback.print_exc() return False def main(): print("=" * 50) print("COMPLETE SYSTEM TEST") print("=" * 50) frontend_ok = test_frontend() print() backend_ok = test_backend() print() if frontend_ok and backend_ok: print("🎉 ALL TESTS PASSED! Frontend and backend are working correctly.") print("\nTo test the complete system:") print("1. Run: python manage.py runserver") print("2. Open base.html in your browser") print("3. Enter a search query and click 'Start Search'") return True else: print("❌ Some tests failed. Please check the errors above.") return False if __name__ == "__main__": success = main() sys.exit(0 if success else 1)