New Ticket

TICKET_CREATE privileges are required to perform this operation. You don't have the required permissions



Login Close

File manage.py

bh_core_experimental

Last change on this file was 0394b68, checked in by Gary Martin <gjm@…>, 5 months ago

add branch for new bh_core experiment

git-svn-id: https://svn.apache.org/repos/asf/bloodhound/branches/bh_core_experimental@1832850 13f79535-47bb-0310-9956-ffa450edef68

  • Property mode set to 100755
File size: 1.3 KB

Line 
1#!/usr/bin/env python
2
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#   http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19
20import os
21import sys
22
23if __name__ == "__main__":
24    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bh_core.settings")
25    try:
26        from django.core.management import execute_from_command_line
27    except ImportError as exc:
28        raise ImportError(
29            "Couldn't import Django. Are you sure it's installed and "
30            "available on your PYTHONPATH environment variable? Did you "
31            "forget to activate a virtual environment?"
32        ) from exc
33    execute_from_command_line(sys.argv)

Note See TracBrowser for help on using the repository browser.