Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Instead of the contents of the HTML page, code is displayed
I am writing a site in Python, Django. After updating PyCharm, the HTML page in the browser displays not its contents, but the code! What can be done with this? Thanks in advance. -
Django view not passing IP address data from form
Trying to do something simple here where I pass an IP address from a form to another view. Previously I had success following beginner tutorials. If someone could point me back to what I'm missing that would be a huge help. model: class GenericIP(models.Model): name = models.CharField(max_length=50) genericip = models.GenericIPAddressField() def __str__(self): return self.name form: class IpForm(forms.Form): gateway = ModelChoiceField(queryset=GenericIP.objects.order_by('name').values_list('genericip', flat=True).distinct()) views: def TestCreate(request): if request.method == 'GET': form1 = IpForm() return render(request, 'create_test.html', {'form1' : form1} ) else: if request.method == 'POST': form1 = IpForm() if form1.is_valid(): genericip = form1.cleaned_data genericip.save() return render(request, 'create_test.html', {'genericip' : genericip} ) def RunTest(request, genericip=""): if request.method == 'POST': Server = genericip return HttpResponse(Server) URLS: urlpatterns = [ path('', views.TestCreate, name='create_test'), path('run_test', views.RunTest, name='run_test',), ] template: {% block content %} <form action="{% url 'run_test' %}"method='post'> {% csrf_token %} {{ form1 }} <input type='submit' class="btn btn-success" value='Run Test'> </form> {% endblock %} So what's happening is when I hit the button to run the test, I don't get anything for the httpresponse. The post data for the TestCreate view does show variable "genericip" and input "192.168.100.100" but that data is not posting correctly to the runtest view. -
Get ID with delete mẹthod in django base views
I'm coding project by Django. In class View have some method as get, post, put, delete... I wrote get and post method. Now I want to custom delete method get object id from request. Can I code? If yes, how do I have to? -
how to show the direction between two location on a maps in django
am working on a project where a user enters the pickup location and destination location I want to show on maps of two locations with distance in my Django project this is how i want -
UserWarning: Unable to import floppyforms.gis, geometry widgets not available while installing geonode in centos 7
I am trying to install geonode in Centos 7 following this document Install GeoNode on CentOS 7. I installed all the dependencies by sudo yum install -y libxml2-devel libxslt-devel libjpeg-turbo-devel postgresql postgresql-server postgresql-contrib postgresql-libs postgresql-devel postgis geos-python python python-tools python-devel python-pillow python-lxml openssh-clients zip unzip wget git gdal python-virtualenv gdal-python geos python-pip python-imaging python-devel gcc-c++ python-psycopg2 libxml2 libxml2-devel libxml2-python libxslt libxslt-devel libxslt-python while trying to run migration by python manage.py migrate i am having following error /opt/virtual_env/geonode/lib/python2.7/site-packages/floppyforms/__init__.py:21: UserWarning: Unable to import floppyforms.gis, geometry widgets not available "Unable to import floppyforms.gis, geometry widgets not available") Traceback (most recent call last): File "manage.py", line 29, in <module> execute_from_command_line(sys.argv) File "/opt/virtual_env/geonode/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/opt/virtual_env/geonode/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute django.setup() File "/opt/virtual_env/geonode/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/opt/virtual_env/geonode/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/opt/virtual_env/geonode/lib/python2.7/site-packages/django/apps/config.py", line 94, in create module = import_module(entry) File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/opt/virtual_env/geonode/lib/python2.7/site-packages/mapstore2_adapter/__init__.py", line 18, in <module> __version__ = pkg_resources.require("django-mapstore-adapter")[0].version File "/opt/virtual_env/geonode/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/opt/virtual_env/geonode/lib/python2.7/site-packages/pkg_resources/__init__.py", line 791, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (Django 1.11.22 (/opt/virtual_env/geonode/lib/python2.7/site-packages), Requirement.parse('Django>=2.2'), set(['jsonfield'])) i installed gdal and gdal-python and verified the installation. what might cause this error? My … -
How to add a calendar pop up for the datefield in my django form?
This is my forms.py from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout,Submit from .models import Event class EventForm(forms.ModelForm): class Meta: model = Event fields = "__all__" def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.helper = FormHelper self.helper.form_method = 'post' self.helper.layout = Layout( 'creator', 'date', 'name', 'public', 'limit_of_guests', Submit('submit','Submit',css_class='btn-success',style="margin-top: 20px; ") ) -
In 2020, what is recommended for doing AJAX in a Django Application? [closed]
Currently I have been using Jquery for doing AJAX in my Djano application. I understand that today the Web Development world is moving away from Jquery. What framework or approach would be recommended for doing Javascript moving forward? This is actually my first application with Django, HTML and Javascript so a beginner friendly approach would be recommended. -
Unable to copy or add tags to the django-taggit within admin.py
I'm making use of django-taggit. Within my admin.py file, I'm trying to copy the contents from other fields to the tags field, but it's not letting me copy it. states and cities are 2 lists that I have within my admin.py file. if form.cleaned_data["tags"] != "": org_name = form.cleaned_data["organization"] dept_name = form.cleaned_data["department"] prof_name = form.cleaned_data["profession"] current_tags = form.cleaned_data["tags"] str_tags = str(org_name) + ", " + str(dept_name) + ", " + str(prof_name) for city in cities: str_tags = str_tags + ", " + str(city) for state in states: str_tags = str_tags + ", " + str(state) obj.tags = str_tags obj.save() form.save_m2m() I viewed couple of solutions but they didn't work for me. I would really thankful if anyone could help me fix this issue. Thank you so much for your time and help in advance! -
sqlalchemy.exc.ProgrammingError in django
Im working django application with mysql version 8.0. i changed the version 5.7 after i running my application im getting this error "sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(order by ovr.obj_nm)" but the details are storing in db normally. -
Django generate bar code and save into image field
I am able to generate the bar code and can save the image file in the root folder using this library python-barcode. Now I am trying to generate the bar code image and save into the django image filed. Tryouts: import barcode bc = Barcode.objects.latest('id') upc = barcode.get('upc', '123456789102', writer=ImageWriter()) img = upc.render() # Returns PIL image class # <PIL.Image.Image image mode=RGB size=523x280 at 0x7FAE2B471320> bc.img = img bc.save() Getting Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-77-4ff34d9ac4c9> in <module> ----> 1 bc.save() ~/Desktop/workspace/projects/barcodescan/scan/models.py in save(self, *args, **kwargs) 19 code = get_random_string(length=11, allowed_chars='1234567890') 20 self.code = str(code) ---> 21 super(BarCode, self).save(*args, **kwargs) 22 23 def __str__(self): ~/Desktop/workspace/projects/barcodescan/venv/lib/python3.5/site-packages/django/db/models/base.py in save(self, force_insert, force_update, using, update_fields) 739 740 self.save_base(using=using, force_insert=force_insert, --> 741 force_update=force_update, update_fields=update_fields) 742 save.alters_data = True 743 ~/Desktop/workspace/projects/barcodescan/venv/lib/python3.5/site-packages/django/db/models/base.py in save_base(self, raw, force_insert, force_update, using, update_fields) 777 updated = self._save_table( 778 raw, cls, force_insert or parent_inserted, --> 779 force_update, using, update_fields, 780 ) 781 # Store the database on which the object was saved ~/Desktop/workspace/projects/barcodescan/venv/lib/python3.5/site-packages/django/db/models/base.py in _save_table(self, raw, cls, force_insert, force_update, using, update_fields) 846 base_qs = cls._base_manager.using(using) 847 values = [(f, None, (getattr(self, f.attname) if raw else f.pre_save(self, False))) --> 848 for f in non_pks] 849 forced_update = update_fields or force_update … -
Is it possible to map a choice field selection to a foreign key in django
models.py class Testimonials(models.Model): client = 'client' employee = 'employee' general = 'general' Testimonial_Choices = ( ('client', 'client'), ('employee', 'employee'), ('general', 'general'), ) testimonial_type=models.CharField(max_length=25, choices=Testimonial_Choices, default=client) if testimonial_type=='client': client_name= models.ForeignKey(Client, on_delete=models.CASCADE) content= models.TextField(max_length=500, blank=False) posted_date= models.DateField(auto_now_add=True) def __str__(self): return self.client_name admin.py class TestimonialAdmin(admin.ModelAdmin): list_display = ('testimonial_type', 'posted_date') list_filter = ('testimonial_type', 'posted_date') search_fields = ['testimonial_type', 'posted_date'] empty_value_display = '-- NA --' list_per_page = 10 admin.site.register(Testimonials, TestimonialAdmin) I am trying to add a choice field first and if the choice type is client i want to fetch the client name and image error AttributeError: 'Testimonials' object has no attribute 'client_name' -
Which algorithm should I use for news popularity(worldwide) using machine learning, have tried K-means clustering?
I am working on News Popularity model where I need to fetch the most trending/popular news in the World. Have fetched data from 40 diff News sources through RSS APIs. What would be best approach to achieve this? Have tried K-Means clustering which will cluster similar news from diff resources, a cluster with the max count will be most popular. #machinelearning #newspopularity #clustering #ai -
DRF: how to not allow create() in Serializer
I'm working with DRF and have a ViewSet where I want to allow all the possible actions (list, details, update, delete), except create(). This is what I have for the moment: class FooViewSet(viewsets.ModelViewSet): queryset = Foo.objects.order_by('-date_added').all() serializer_class = FooSerializer def create(self, request): return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED) def update(self, request, pk=None): version = get_object_or_404(Foo, pk=pk) html = request.data.get('html') version.update_content(html) return Response(data={ 'id': version.id, 'name': version.name, 'description': version.description, 'html': version.content, }, status=status.HTTP_200_OK) I know I could make the serializer inherit from ReadOnlyModelViewSet but then I wouldn't be able to update it. So what is the cleanest way of not allowing to create()? -
how to set pagination in django views?
how to set pagination in this views, i tried all the default django_pagination but i didn't get any helped. class Order_ListAPIView(APIView): def get(self,request,format=None): if request.method == 'GET': cur,conn = connection() order_query = ''' SELECT * FROM orders''' order_detail_query = ''' SELECT * FROM order_details''' with conn.cursor(MySQLdb.cursors.DictCursor) as cursor: cursor.execute(order_query) order_result = cursor.fetchall() order_data = list(order_result) ... ... #rest_code ... return Response({"order_data":order_data},status=status.HTTP_200_OK) else: return Response(status=status.HTTP_400_BAD_REQUEST) -
File Upload Parser
I need a small help, I am trying to load a JSON file content into my code via REST API, I don't want to upload it to any areas, I don't want it to download, I just want it to read by using this such rest call: urls.py **url(r'^api/postCNMetadata/(?P<filename>[^/]+)$', PostCNMetadataToDB.as_view()),** viewsets.py from rest_framework.parsers import FileUploadParser class PostCNMetadataToDB(APIView): ''' Posting data from json file to DB. ''' parser_classes = (FileUploadParser,) def put(self, request, filename, format=None): try: file_obj = request.FILES['file'] return Response("success", status = status.HTTP_200_OK) except Exception as e: return Response("error", status = status.HTTP_404_NOT_FOUND) Then I am running this command: wget -q -O - --no-check-certificate "http://atclvm1335.athtem.eei.ericsson.se:8000/api/postCNMetadata/image-metadata-artifact.json/" I am not sure what I am doing wrong here. But I am getting this error: 2020-03-05 12:16:43,400 [INFO][sshtunnel.ForwardServer:34] Server Fowarded extending SocketServer.ThreadingTCPServer parmiko class /proj/lciadm100/cifwk/my_repo/ERICcifwk/ERICcifw_reporting/django_proj/dmt/infoforConfig.py:9: DeprecationWarning: the sets module is deprecated from sets import Set Traceback (most recent call last): File "/usr/lib64/python2.6/wsgiref/handlers.py", line 94, in run self.finish_response() File "/usr/lib64/python2.6/wsgiref/handlers.py", line 135, in finish_response self.write(data) File "/usr/lib64/python2.6/wsgiref/handlers.py", line 223, in write self._write(data) File "/usr/lib64/python2.6/socket.py", line 324, in write self.flush() File "/usr/lib64/python2.6/socket.py", line 303, in flush self._sock.sendall(buffer(data, write_offset, buffer_size)) error: [Errno 104] Connection reset by peer ---------------------------------------- Exception happened during processing of request from ('10.59.140.55', 53707) Traceback … -
How to generate and format field values (primary key and other types)?
My model is defined like: class Example(models.Model): ex_id = models.CharField(max_length=30, primary_key=True) name = models.CharField() sess_id = models.CharField(max_length=20, default=0) creation_date = models.DateTimeField(auto_now=False, auto_now_add=True) def __str__(self): return str(self.name) What I'm trying to do is assigning ids dynamically with use of the serializer below. The values should be generated based on timestamp taken from the model: class ExampleSerializer(serializers.ModelSerializer): ex_id = serializers.SerializerMethodField() name = serializers.CharField(min_length=6) sess_id = serializers.SerializerMethodField() def get_ex_id(self, obj): return '{:x}'.format(int(obj.creation_date.strftime("%Y%m%d%H%M%S%f"))) def get_sess_id(self, obj): return 'sess_' + str(obj.creation_date.strftime("%d%H%M%S%f")) class Meta: model = Example fields = '__all__' Everything ends up with inserting one record to the database; in case of following attempts UNIQUE constraints failed error is thrown. In the browser view, the one record that was added displays ids as defined in the serializer, but when I look into the database, there are empty/zero values for them (0 in case of sess_id, since this is the default value; empty value for ex_id). How/where should I configure the app to have the formatted values inserted as field values? -
Django - UNIQUE constraint failed on foreing keys
I have two tables on my Django database (SQLite), Field_Of_Research and Conference. Conference has three foreign keys associated to the primary key of Field_Of_Research. During the migrate command, I populate the database (reading from csv files), but when two conference with same foreign key value (for all three keys) are inserted, the UNIQUE constraint failed is diplayed. If I insert the confereces using the admin page, the database gives the same error. How can I solve this problem? model.py class Field_Of_Research (models.Model): for_id = models.PositiveIntegerField(primary_key=True) name = models.CharField(max_length=256) def __str__(self): return self.name class Conference (models.Model): conf_id = models.PositiveIntegerField(primary_key=True) title = models.CharField(max_length=256) primary_for = models.ForeignKey(to=Field_Of_Research, default=0, on_delete=models.SET_DEFAULT, related_name= 'primary_for') secondary_for = models.ForeignKey(to=Field_Of_Research, default=0, on_delete=models.SET_DEFAULT, related_name= 'secondary_for') third_for = models.ForeignKey(to=Field_Of_Research , default=0, on_delete=models.SET_DEFAULT, related_name= 'third_for') def __str__(self): return self.title populate.py with open('./server/api/database/files/fields_of_research.csv') as csv_file: csv_reader = csv.reader(csv_file, delimiter=';') for row in csv_reader: f=Field_Of_Research.objects.get_or_create( for_id = row[0], name = row[1] ) print(f'Fields of Research done.') #Populates the conferences database with open('./server/api/database/files/conferences.csv') as csv_file: csv_reader = csv.reader(csv_file, delimiter=';') for row in csv_reader: print(row) c=Conference.objects.get_or_create( conf_id = row[0], title = row[1], primary_for = Field_Of_Research.objects.get(for_id=int(row[3])), secondary_for = Field_Of_Research.objects.get(for_id=int(row[4])), third_for = Field_Of_Research.objects.get(for_id=int(row[5])), ) print(f'Conferences done.') error File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\db\backends\utils.py", line 86, in _execute return self.cursor.execute(sql, params) File "C:\Users\andre\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\db\backends\sqlite3\base.py", … -
"message": "Field 'id' expected a number but got 'Ashu'."
my modelfrom django.db import models import datetime from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) from django_countries.fields import CountryField class MyUserManager(BaseUserManager): def create_user(self, email, date_of_birth, password=None): """ Creates and saves a User with the given email, date of birth and password. """ if not email: raise ValueError('Users must have an email address') user = self.model( email=self.normalize_email(email), date_of_birth=date_of_birth, ) user.set_password(password) user.save(using=self._db) return user def create_superuser(self, email, date_of_birth, password=None): """ Creates and saves a superuser with the given email, date of birth and password. """ user = self.create_user( email, password=password, date_of_birth=date_of_birth, ) user.is_admin = True user.save(using=self._db) return user class MyUser(AbstractBaseUser): email = models.EmailField( verbose_name='email address', max_length=255, unique=True) user_name=models.CharField(max_length=10,blank=True,null=True,unique=True) date_of_birth=models.DateField(null=True,blank=True) mobile_number=models.CharField(max_length=20,blank=True,null=True) address=models.CharField(max_length=100,blank=True,null=True) country=models.CharField(max_length=20,blank=True,null=True) joining_date=models.DateField(null=True,blank=True) Rating_CHOICES = ( (1, 'Poor'), (2, 'Average'), (3, 'Good'), (4, 'Very Good'), (5, 'Excellent') ) Rating=models.IntegerField(choices=Rating_CHOICES,default=1) is_active = models.BooleanField(default=True) is_admin = models.BooleanField(default=False) objects = MyUserManager() USERNAME_FIELD = 'email' REQUIRED_FIELDS = ['date_of_birth'] def __str__(self): return str(self.user_name) def has_perm(self, perm, obj=None): return True def has_module_perms(self, app_label): return True @property def is_staff(self): return self.is_admin class IntrestedIn(models.Model): game=( ('cricket','cricket'), ('football','football'), ('basketball','basketball'), ('hockey','hockey'), ('gym','gym'), ('baseball','baseball'), ) line=( ('Beginner','Beginner'), ('Intermediate','Intermediate'), ('Advance','Advance'), ) Sport=models.CharField(max_length=50,choices=game) Level=models.CharField(max_length=50,choices=line) image=models.FileField(blank=True, default="", upload_to="media/images",null=True) user=models.ForeignKey(MyUser,on_delete=models.CASCADE, related_name='select_user',null=True) def __str__(self): return str(self.Sport) class Session(models.Model): Host=models.ForeignKey(MyUser,on_delete=models.CASCADE) game=( ('cricket','cricket'), ('football','football'), ('basketball','basketball'), ('hockey','hockey'), ('gym','gym'), ('baseball','baseball'), ) Sport=models.CharField(max_length=20,choices=game) SPORT=( … -
Login Required is taking away my wagtail documents
@login_required def view_architect_page(request): args = {'user': request.user} return render(request, 'DEMOAPP/architect_page.html', args) This is my view. It redirects me to my login page and then allows me into the page after logged in but it doesnt display the wagtail information. I know its not working becuase when i "view live" in wagtail, the files show up... class ArchitectPage(Page): search_fields = Page.search_fields + [ ] # these are if adding a search to the website # content tab panels content_panels = Page.content_panels + [ MultiFieldPanel( [InlinePanel('architect_pdf', max_num=20, min_num=0, label="architect pdf")], heading="architect pdf" ), ] # what to call the panels on wagtail edit_handler = TabbedInterface([ ObjectList(content_panels, heading='Content'), ObjectList(Page.promote_panels, heading='SEO'), ObjectList(Page.settings_panels, heading='Settings', classname='settings'), classname settings adds the cog ]) class ArchitectDownloads(Orderable): page = ParentalKey(ArchitectPage, on_delete=models.CASCADE, related_name='architect_pdf') architect_pdf = models.ForeignKey( 'wagtaildocs.Document', null=True, blank=True, on_delete=models.SET_NULL, related_name='+' ) panels = [ DocumentChooserPanel('architect_pdf'), ] This is my html which doesnt show up becuase of this login required view... <ul> {% for download in page.architect_pdf.all %} {# loop over the ArchitectDownload objects #} {% with doc=download.architect_pdf %} {# retrieve the Document object for each one #} <li><a href="{{ doc.url }}">{{ doc.title }}</a></li> {% endwith %} {% endfor %} </ul> Ive been commenting this in and out and can … -
Failed to build python app in Heroku; can't find newscatcher
In trying to push to heroku I am getting a "build failed" error. In checking the logs I see it's because of the following: ERROR: Could not find a version that satisfies the requirement newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13)) (from versions: none) ERROR: No matching distribution found for newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13)) ! Push rejected, failed to compile Python app. ! Push failed It looks like there's an incorrect version of the "newscatcher" library I am trying to use. However, this is the correct version according to PyPi. In addition I have already performed a pip3 freeze > requirements.txt in order to collect all dependencies I know to be relevant. How come the correct version of a git supported pip package is throwing this error? How do I fix this? -
I am using django ... all my css is working but <a> tag properties are not working like hover , visited is not working?
html css output base.html <div class="col-md-3 col-sm-4 col-xs-6 col-md-push-1"> <br> <h3>About Us</h3> <ul class="fh5co-footer-links"> <li><a href="{% url 'about_us' %}">Goal</a></li> <li><a href="{% url 'about_us' %}">Vision and aim</a></li> <li><a href="{% url 'about_us' %}">Achivement</a></li> <li><a href="{% url 'about_us' %}">Location</a></li> </ul> </div> i am using django all my css is wokring but the css of the tag is not working the css is not working of the tag why is this is because of the static links i tried everthing but dont know whats wrong -
Validating a django form if it needs to go through a calculator
I have this calculator program written in Django that will takes several inputs as a form. I won’t know if one of the field is invalid until I run it through the calculator. How can I raise a validation error without having to run the calculator.py twice, one through the clean() method to validate and again to output in the view. Is it possible to raise a validation error midway in the calculator.py? -
Djongo ArrayReferenceField to patch in the database
I can able to do patch operation in ArrayReferenceField after refreshing it is getting again whatever data before. while updating through the Django admin page I can do all the operations. -
Does not ignore db.sqlite3 file,even i specified in .gitignore in django project
in my Django project,i have already .gitignore file in root as well in django project but when i fire git status or git add . It adding all __pycache__ db.sqlite3 in repository. i need to remove those two things from my project. please help.! I tried all things like *.sqlite3, mom/*.sqlite3, mom/db.sqlite3 and db.sqlite3 in my both .gitignore file respectively. But anything not work in any directory. here is my main git ignore file .gitignore media *.sqlite3 **/__pycache__/** *.pyc here is my another git ignore file .gitignore media db.sqlite3 **/__pycache__/** *.pyc I also tried many possibilities from online resources but anything not working file structure MOM-PROJECT(local Repo) | ├───MOM (main project) | ├───media | │ └───media | ├───MOM | │ ├───migrations | │ └───templatetags | ├───userprofile | │ └───migrations | │ └───__pycache__ | ├───templates | │ ├───MOM | │ ├───userprofile | │ └───base.html | ├───manage.py | ├───requirements.txt | ├───db.sqlite3 | └───.gitignore [another created after main] | ├───README.md ├───.git └───.gitignore [Main] Umm Actually first i created .gitignore file in at main folder where .git folder(in project) exist. my media folder automatically removed and that worked fine. but when i added mom/db.sqlite3 or *.sqlite3 in main .gitignore it's not ignoring therefore i … -
DJANGO - INDEX ASSOCIATE A LINK RUNSERVR
could you help me? how can we associate the index page to the link 127.0.0.1:8000 ?