Explorar el Código

[fix]

version-14
Rushabh Mehta hace 11 años
padre
commit
f285b18fad
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      frappe/installer.py

+ 3
- 2
frappe/installer.py Ver fichero

@@ -11,9 +11,9 @@ import frappe
import frappe.database
import getpass
from frappe.model.db_schema import DbManager
import frappe.website.sync
from frappe.model.sync import sync_for
from frappe.utils.fixtures import sync_fixtures
from frappe.website import render, statics

def install_db(root_login="root", root_password=None, db_name=None, source_sql=None,
admin_password = 'admin', verbose=True, force=0, site_config=None, reinstall=False):
@@ -129,7 +129,8 @@ def add_to_installed_apps(app_name, rebuild_website=True):
frappe.db.commit()

if rebuild_website:
frappe.website.sync.sync()
render.clear_cache()
statics.sync().start()

frappe.db.commit()



Cargando…
Cancelar
Guardar